Convert the following while loop into for loops
while: 100
it i%2==0
print 1, "is even"
else:
print i,"is odd"
i=i+1
Answers
Answered by
2
Answer:
for i in range(0,101):
if(i%2==0):
print("is even")
else:
print("is odd")
Explanation:
Similar questions