Computer Science, asked by ysailaja81, 1 year ago

what will be the outcome of the following code:
x= 1
while (x<10):
if(x==5):break
print x
if(x==3):break
print x

Answers

Answered by purnamahesh
0

Answer:

since x value is not updating (incremented) there is no chance of breaking the loop.

so its an infinite loop that will print 1 in each line repeatedly

Similar questions