//PALINDROME OF A NUMBER #include #include void main() { long int a,s=0,r,t; clrscr(); printf("Enter the number:"); scanf("%ld",&a); t=a; while(a>0) { r=a%10; s=s*10+r; a=(a-r)/10; } if(t==s) printf("The number is a palindrome"); else printf("The number is not a palindrome"); getche(); } /*OUTPUT Enter the number:236732 The number is not a palindrome*/