Computer Science, asked by sonukart194, 9 months ago

How many times is the following loop
executed?
i = 100
while (i<=200):
print (i)
i + =20

Answers

Answered by SkywalkerS19
3

Answer:

6 times

Explanation:

First value: 100

Condition true. Executed.

Second value: 120

True

Third:140

True

Fourth:160

True

Fifth:180

True

Sixth:200

True

Seventh:220

False. Loop breaks.

Hope it helped you.

Similar questions