C Program to check if the number is Palindrome



#include<stdio.h>
#include<conio.h>
void main()
{
int k,n,t,s=0;
clrscr();
printf("Enter the n value:");
scanf("%d",&k);
n=k;
while(n>0)
{
t=n%10;
s=s*10+t;
n=n/10;
}
if(k==s)
{
printf("given %d number is palindrome",k);
}
else
{
printf("not palindrome");
}
getch();
}