Command Line Program to Check if a Number is Palindrome or Not using C Programming language
Program to check whether the given number is a palindrome or not is discussed here. Any number is said to be a palindrome if the original number and the reverse of the original number are the same.
For example, 1234321 is a palindrome.
- Original number = 1234321
- The reverse of the number = 1234321
Algorithm to check whether a number is a palindrome or not
- Input the number.
- Find the reverse of the number.
- If the reverse of the number is equal to the number, then return true. Else, return false.