+ 4
I can't get why there is spamming in output ?
4 Respuestas
+ 3
Amit Kumar thx
+ 2
3 will always smaller than 5
+ 2
The first while loop will always be false hence the print("ok") is skipped
In second loop it will print &&& until 3<=5 which will always remain true and hence it will run infinitely (till timed out)
0
You have no termination condition for while loop. So it infinite loops..
First condition in loop is false so don't get execute. Second loop condition is always true. So infinite loop.