Trace this loop by hand:
What number does it print?
Enter a whole number.
Once you get it right, the reasoning behind the answer shows up here.