Rewrite the following program using for loop
i = 4
while i < 9:
print(i)
i = i+2
Answers
Answered by
4
Answer:
Explanation:
i = 4
while True:
i = i+2
if i < 9:
print(i)
continue
else:
break
it is a python script...
Answered by
0
Answer:
Converting while loop to for loop .)
CODE:
i=4
while i in range(4,9):
print(i)
i=i+2
Explanation:
Output:
4
6
8
Similar questions