#K65752. Palindrome Number Checker
Palindrome Number Checker
Palindrome Number Checker
You are given a non-negative integer and the task is to determine whether the integer is a palindrome. A palindrome is a number that reads the same backward as forward. For instance, 121
is a palindrome while 123
is not.
The solution involves converting the integer into a string and comparing it with its reversed string. If both are equal, the input is a palindrome.
Note: Input is to be taken from stdin
and output should be printed to stdout
as either True
or False
.
inputFormat
A single non-negative integer provided via stdin
.
outputFormat
Print True
if the integer is a palindrome; otherwise, print False
. The output should be sent to stdout
.## sample
121
True