// Compiler : Dev C++4.9.9.2
#include<stdio.h>
int main()
{
int num,r,sum=0,temp;
printf("Number : ");
scanf("%d",&num);
temp=num;
while(num)
{
r=num%10;
num/=10;
sum=sum*10+r;
}
if(temp==sum)
printf("\n\n%d Is Palindrome Number.",temp);
else
printf("\n\n%d Is Not Palindrome Number.",temp);
getch();
return 0;
}
Post a Comment