The thread referenced by Hammer has code written by Hammer that allows for embedded zeros like 1001 while reversing the integer intput. admittedly 200 becomes 2 rather than 002, and 002 remains 2 rather than 200, but if you want the digits to be of type int rather than char, that's the way it is.