हिंदी

What is the output of the following snippet? i=1 while True: if i%3 ==0: break print(i,end='') i +=1

Advertisements

प्रश्न

What is the output of the following snippet?

i=1
while True:
    if i%3 ==0:
            break
print(i,end='')
i +=1

विकल्प

  • 12

  • 123

  • 1234

  • 124

MCQ
Advertisements

उत्तर

12

shaalaa.com
Control Structure
  क्या इस प्रश्न या उत्तर में कोई त्रुटि है?
अध्याय 6: Control Structures - Evaluation [पृष्ठ ८७]
Advertisements
Share
Notifications



      Forgot password?
Use app×