Convert the following while loop into for loop:
i=0
while i<100
if i%2 ==0:
print i, "is even"
else:
print i,"is odd"
i=i+1
Answers
Answered by
0
sorry bro dont know the answer
Answered by
3
Answer:
for in range (100):
if i %2=0
print i,"is even"
else:
print i,"is odd"
i=i+1
Similar questions