हिंदी

Write the while loop to print the following series: 5, 10, 15, ...100

Advertisements
Advertisements

प्रश्न

Write the while loop to print the following series:

5, 10, 15, ...100

कोड लेखन
Advertisements

उत्तर

i = 5
while i <= 100:
    print(i, end=", ")
    i += 5
shaalaa.com
  क्या इस प्रश्न या उत्तर में कोई त्रुटि है?
अध्याय 1: Review of Phython - EXERCISE [पृष्ठ २४]

APPEARS IN

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

Englishहिंदीमराठी


      Forgot password?
Use app×