C++ Program to Check Whether the Entered Number is Palindrome or Not

Write a Program to Check Whether the Entered Number is Palindrome or Not
- C++ Program to Check Entered String is Palindrome or Not
- C++ Functions to Add, Subtract, Multiply and Divide Using Operator Overloading
- C++ Program to Implement Pre-increment and Post-increment Operators
- C++ Program to Implement Unary Operator Overloading
- C++ Program to Implement Binary Operator Overloading
Source Code
#include<iostream> #include<conio.h> using namespace std; int main() { int n,r,s=0,t; cout<<"enter a number:"; cin>>n; r=n; while(r!=0) { t=r%10; s=(s*10+t); r=r/10; } if(s==n) cout<<endl<<n<<"Number is palindrome"; else cout<<endl<<n<<"NUmber is not palindrome"; }