a palindrome is a number which is the same when read from either end. for example,782387is a palindrome but123 not.
write a program to input a number and test whether it is palidrome.you should dtore the digits in an array.then compare the digit from both ends of the array.
sample output
enter a number:782387
the number is a paildrome.
sample output2
enter a number:123
the number is not a paildrome.