English
Tamil Nadu Board of Secondary EducationHSC Science Class 12

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

Advertisements
Advertisements

Question

What is the output of the following snippet?

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

Options

  • 12

  • 123

  • 1234

  • 124

MCQ
Advertisements

Solution

12

shaalaa.com
Control Structure
  Is there an error in this question or solution?
Chapter 6: Control Structures - Evaluation [Page 87]

APPEARS IN

Samacheer Kalvi Computer Science [English] Class 12 TN Board
Chapter 6 Control Structures
Evaluation | Q 7. | Page 87
Share
Notifications

Englishहिंदीमराठी


      Forgot password?
Use app×