Report Bug

Qus

What is the output of the following program:

i = 0
while i < 3:
    print (i)
    i=i+1
    print (i+1)
Qus

निम्नलिखित प्रोग्राम का आउटपुट क्या है:

i = 0
while i < 3:
    print (i)
    i=i+1
    print (i+1)


A. 0 2 1 3 2 4
B. 0 1 2 3 4 5
C. Infinite loop
D. 0 1 2 3


Solution
A. 0 2 1 3 2 4



Latest Current Affairs 2025 Online Exam Quiz for One day Exam Online Typing Test CCC Online Test Python Programming Tutorials Best Computer Training Institute in Prayagraj (Allahabad) Online MBA 2 years Online MCA Online BCA Best Website and Software Company in Allahabad