I think you would need i-- somewhere in there to decrement the integer one at a time.

Is that what you want to do, so say 10 is entered you want to print, 10, 9, 8, 7, 6, 5, 4, 3, 2, 1, 0

Or
...