//To chechk weather the number is palindrome or not
#include<stdio.h>
#include<conio.h>
void main()
{
int n,rev=0;
printf("Enter the number to be checked:");
scanf("%d",&n);
int num=n;
while(n!=0)
{
rev=rev*10;
rev=rev+n%10;
n=n/10;
}
if(num == rev)
{
printf("The number is Palindrome :)!");
}
else
{
printf("The number is not palindrome \:(");
}
}