मराठी

Write the while loop to print the following series: 100, 98, 96, ...2

Advertisements
Advertisements

प्रश्न

Write the while loop to print the following series:

100, 98, 96, ...2

कोड लेखन
Advertisements

उत्तर

i = 100
while i >= 2:
    print(i, end=", ")
    i -= 2
shaalaa.com
  या प्रश्नात किंवा उत्तरात काही त्रुटी आहे का?
पाठ 1: Review of Phython - EXERCISE [पृष्ठ २४]

APPEARS IN

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

Englishहिंदीमराठी


      Forgot password?
Use app×