Store the number in a string.
Reverse the string.
And just compare the two strings.
If they are equal then number is palindrome..
Do post again if ther's any doubt.