Computer Science, asked by mubmuj786, 2 months ago

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

Answers

Answered by atrs7391
1

Given Program:

i = 0

while i < 3:

print(i)

i += 1

else:

print(0)​

Program after proper indentation:

i = 0

while i < 3:

   print(i)

   i += 1

else:

   print(0)

Output:

0

1

2

0

Similar questions