Check whether the number is palindrome or not

Ads

In this section, you will learn how to check whether the number is palindrome or not.

Check whether the number is palindrome or not

A palindrome is a word,
phrase, number or other sequence of units that can be read the same way in
either direction. Here we are going to check whether the number entered by the
user is palindrome or not. You can check it in various ways but the simplest
method is by reversing the digits of the original number and check
to see if the reversed number is equal to the original.