Palindrome number in c: A palindrome number is a number such that if we reverse it, it will not change. For example some palindrome numbers examples are 121, 212, 12321, -454. To check whether a number is palindrome or not first we reverse it and then compare the number obtained with the original, if both are same then number is palindrome otherwise not. C program for palindrome numbers is given below.
Palindrome number algorithm
- Get the number from user.
- Reverse it.
- Compare it with the number entered by the user.
- If both are same then print palindrome number
- Else print not a palindrome numbers.
Palindrome number program c