#include<iostream.h>
#include<conio.h>
void main()
{
                long n,num,rem,digit=0;
                clrscr();
                cout<<"Enter A Number :- ";
                cin>>num;
                n=num;                //Initialization
                while(n>0)
                                {
                                rem=n%10;
                                digit=digit*10+rem;
                                n=n/10;                //Updation
                                }
                if(num==digit)
                                {
                                cout<<"\n\tPalindrome";
                                }
                else
                                {
                                cout<<"\n\tNot Palindrome";
                                }
                getch();
}

33.PNG

Advertisements