English

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

Advertisements
Advertisements

Question

How many times are the following loop executed?

i = 100
while(i<=200):
     print i
     i + =20
Very Short Answer
Advertisements

Solution

Values: 100, 120, 140, 160, 180, 200

6 times

shaalaa.com
  Is there an error in this question or solution?
Chapter 1: Review of Phython - EXERCISE [Page 25]

APPEARS IN

CBSE Computer Science with Python [English] Class 12
Chapter 1 Review of Phython
EXERCISE | Q 4. b) | Page 25
Share
Notifications

Englishहिंदीमराठी


      Forgot password?
Use app×