C++ Program to Check Palindrome Number

By Prem Tiwari in C++ Tutorial. Updated on


If you want to write a C++ program to check whether the entered number is palindrome number or not, then this tutorial is specially designed for you. Please keep your close attention in this post as I am going to share a C++ program to check palindrome number while executing below C++ program.

What is Palindrome Number?

The palindrome number is a number which is equal to it’s reversed number, like if the user entered 12321, then the reversed number of entered number is same as the original number so that this number is a palindrome number.

How to Check Palindrome Number?

if you want to check the palindrome number, then first you need to reserve the entered number and then check if the reversed number and entered number is same, then that number is a palindrome number. Below program will check whether entered number is a palindrome number or not.

Output is:

//Frist try
Enter a positive number: 151
Reverse number is: 151
This number is a palindrome number.
#Second try
Enter a positive number: 1345
Reverse number is: 5431
This number is not a palindrome number.

Sharing is caring!


Prem Tiwari

An engineer by profession and a passionate blogger by heart. Founder of FreeWebMentor.com (A Programming blog for beginners), Tech Speaker at various forums. A part from this he is an open source enthusiast, WordPress Lover, Blogger, SEO, and Growth Strategic.

You might also like:

Tags: , , ,

Leave a Reply

Your email address will not be published. Required fields are marked *

This site uses Akismet to reduce spam. Learn how your comment data is processed.