Computer Science, asked by Anonymous, 6 months ago

Rewrite the following program using for loop
i = 4
while i < 9:
print(i)
i = i+2

Answers

Answered by shuklaabhyuday925
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 arangaproplayer
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