0

I need to make a program to check if the entered number is palindrome or not i.e. if u take a number and reverse it it will be the same old number for example if u take 121..then if u reverse the number it will be 121 and so 121 is a palindrome number.

i wrote a program to check if a number is palindrome or not but it is not working properly :cry: ...Can any1 plz tell me wat is wrong..

The program which I wrote is below:-

```
#include<iostream.h>
#include<conio.h>
void main()
{
int n, x, m=0;
cout<<"Enter any number"<<endl;
cin>>n;
while(n>0)
{
m*=10;
x=n%10;
m+=x;
n/=10;
}
if(m==n)
cout<<"The entered number is a palindrome number"<<endl;
else
cout<<"The entered is not a palindrome number"<<endl;
getch();
}
```