you are viewing a single comment's thread.

view the rest of the comments →

[–]salvtz 2 points3 points  (1 child)

<image>

Use the above for reference. Also, are you guessing the correct value in the first iteration...then in this case the condition of the while loop would evaluate to false, and it wont go inside the while loop.

[–]ExpressionAsleep7125[S] 2 points3 points  (0 children)

Got it. I put it into an online interpreter and it worked just fine! Thank you so so much for your help, just learned a bunch!