Rewrite the following code using for loop
i=100
while i>0:
i=i-1
if i==20:
break
Answers
Answered by
0
Answer:
for(int i=20;i>0;i--)
initialise i as 20 i is greater than 0 i dercrement
Similar questions