Write a program that:
- Reads the integer from the
stdin; - Reverses its digits;
- Prints the result.
Tip: You can "shift" an integer to the left or the right by multiplying or dividing it by 10:
1234 * 10 = 12340
1234 / 10 = 123
Tip: You can retrieve the last digit of an integer by taking the remainder of its division by 10:
1234 % 10 = 4