हिंदी

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

Advertisements
Advertisements

प्रश्न

How many times are the following loop executed?

i = 100
while(i<=200):
     print i
     i + =20
अति संक्षिप्त उत्तर
Advertisements

उत्तर

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

6 times

shaalaa.com
  क्या इस प्रश्न या उत्तर में कोई त्रुटि है?
अध्याय 1: Review of Phython - EXERCISE [पृष्ठ २५]

APPEARS IN

सीबीएसई Computer Science with Python [English] Class 12
अध्याय 1 Review of Phython
EXERCISE | Q 4. b) | पृष्ठ २५
Share
Notifications

Englishहिंदीमराठी


      Forgot password?
Use app×