program:
#include<stdio.h>
int main()
{
int n, result=0, temp, rem;
printf("please enter the number:\n");
scanf("%d",&n);
temp=n;
while(temp!=0)
{
rem=temp%10;
result=result*10+rem;
temp=temp/10;
}
if(result==n)
printf("entered number is palindrome");
else
printf("entered number is not palindrome");
return 0;
}
output: