#include<iostream.h>
#include<conio.h>

void main()

{

int n, num,digit,rev=0;

cout<<"\n Enter the number(max=20000):";
cin>>num;
n=num;

do
{

digit=max%10;
rev=(rev*10)+digit;
num=num\10;

}

while(num!=0);

cout<<"The reverse of the number is:<<rev<<"\n;
if(n==rev)

cout<<"\n The Number is Palindrome";

else

cout<<"\n The Number is not a Palindrom";

getch();
};
Designed By Blogger Templates | Templatelib & Distributed By Blogspot Templates