Rewrite the following while loop into for loop:
i=88
while(i>=8): print i
i- = 8
Answers
Answered by
1
for i in range(88, 0, -8):
print(i)
Alternative Method:
for i in range(88, 0):
print(i)
i -= 8
Similar questions