मराठी

Write the output from the following code: n = 50 i = 5 s = 0 while i<n: s+ = i i+ = 10 print "i=",i print "sum=",s

Advertisements
Advertisements

प्रश्न

Write the output from the following code:

n = 50
i = 5
s = 0
while i<n:
      s+ = i
      i+ = 10
print "i=",i
print "sum=",s
कोड लेखन
Advertisements

उत्तर

i=  55
sum=  125
shaalaa.com
  या प्रश्नात किंवा उत्तरात काही त्रुटी आहे का?
पाठ 1: Review of Phython - EXERCISE [पृष्ठ २४]

APPEARS IN

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

Englishहिंदीमराठी


      Forgot password?
Use app×