So start with a program that can read in an integer and print it.
Then add functionality to print each digit out of the number using the method of dividing and using modulo to find the remainder.
Then add the functionality to modify each digit, and then put it back together into a single integer again.

--
Mats