Programming in C

// PALINDROME NUMBER
#include <stdio.h>
void main ()
{
int n, n1, r, s;
printf ("Enter any number ");
scanf("%d",&n);
n1=n;
while(n1!=0)
{
      r=n%10;
      n=n/10;
      s=s*10+r;
}
if (s==n)
    printf("%d is Palindrome ",n);
else
    printf("%d is not Palindrome ",n);

}

Comments