Medium
Reverse a Three-Digit Number
Read a three-digit number and print it reversed using only arithmetic (
// and %, no strings). Print the result as a number, so 120 becomes 21.Input
One integer 100–999.
Output
One integer.
Sample 1
Input
123
Output
321
Sample 2
Input
120
Output
21
Output appears here