Input
#include<stdio.h>
#include<conio.h>
void main()
{
int num,rev=0,temp;
clrscr();
printf("Enter the number of want to check for palindrome\n");
scanf("%d",&num);
temp=num;
while(temp>0)
{
rev=(10*rev) + (temp%10);
temp=temp/10;
}
if(num==rev)
printf("\nNumber is Palindrome");
else
printf("\n Number is not Palindrome");
getch();
}