+ 3
You need to attach link to the code before anyone can look at it and suggest anything. Add the link in your post's Description above.
https://www.sololearn.com/post/75089/?ref=app
+ 3
Julian Hasheian
Can you provide your code so we can check where is problem.
+ 1
While loop differs from for loop in that, you need to update a "state" variable so that the condition turns false, so as to exit the loop.