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
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
Math,
5 months ago
Social Sciences,
5 months ago
Math,
11 months ago
English,
1 year ago
Math,
1 year ago