#K48367. Palindrome Number Checker
Palindrome Number Checker
Palindrome Number Checker
Given an integer n, determine if it is a palindrome. A palindrome number is a number that reads the same backwards as forwards. In other words, if the string representation of the number is denoted by s, the number is a palindrome if:
\( s = s^{R} \)
where \( s^{R} \) is the reverse of s. Your program should read from standard input and write the result to standard output. If the number is a palindrome, print True
; otherwise, print False
.
inputFormat
The input consists of a single line containing an integer n (\(0 \leq n \leq 10^{9}\)).
outputFormat
Output a single line containing either True
if the number is a palindrome, or False
otherwise.
121
True