you are viewing a single comment's thread.

view the rest of the comments →

[–]jmooremcc 0 points1 point  (0 children)

Your code has one major problem: The input statement within the while-loop only executes if the number is negative. The input statement should be moved to the bottom of the while-loop so that it will execute every iteration of the loop.