18. Rewrite the following code fragment using for loop:
i=100
while (I>0):
print(i)
i-=3
Answers
Answered by
29
Answer:
The code using for loop is as follows:
for(i=100; i>0; i--)
{
printf(i);
i=i-3;
}
Answered by
1
Answer:
for i in range(100, 0, -3)
print(i)
Similar questions