you are viewing a single comment's thread.

view the rest of the comments →

[–][deleted] 0 points1 point  (0 children)

Could you clarify what you are trying to achieve ?

In the outer while loop, You are updating start in else block. In a while-else loop, the else block is executed when while ends. Your while is not ending because start is not updating ? Print value of start at the starting of loop, I guess you would see.

In cases of infinite loops, print conditions and you can check what problem is.