You need to use division and remainder by 10. Consider this example:
- 163 divided by 10 is 16, remainder 3
- 16 divided by 10 is 1, remainder 6
- 1 divided by 10 is 0, remainder 1
You'll notice the remainder is always the last digit of the number that's being divided. How do I do this in C?