#include<iostream.h>
#include<conio.h>
void main()
{
int n,s,a,c=0;
clrscr();
cout<<"enter a no. to be checked pallendrome";
cin>>n;
a=n;
while(n!=0)
{
s=n%10;
c=c*10+s;
n=n/10;
}
if(c==a)
cout<<"\nit is pallendrome";
else
cout<<"\nnot pallendrome";
getch();
}