Medium
Reverse and Check a Number
Write
reverse_number(n) using arithmetic (no strings) and is_palindrome(n) that uses it. Read a non-negative integer and print the reversed number and whether it is a palindrome.Input
One integer.
Output
Two lines.
Sample 1
Input
12321
Output
12321 True
Sample 2
Input
123
Output
321 False
Output appears here