How many times is the following loop
executed?
i = 100
while (i<=200):
print (i)
i + =20
Answers
Answered by
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
Hindi,
4 months ago
Math,
4 months ago
Chemistry,
9 months ago
India Languages,
1 year ago
Science,
1 year ago