Praveen | Typing Speed Test is a very useful Software available for free Download.

C Programs to Check Palindrome Number

      In this C program to check the number is Palindrome or Not. Palindrome means those number is equal to Reverse number. For example:- 12321, 171.


Check Palindrome C programming code

#include<stdio.h>
#include<conio.h>


 
void main()
{
   int n, Sum= 0, r, a;
   clrscr();
   printf("\n Enter a number to check palindrome or not ");
   scanf("%d",&n);
   a = n;
   while( n != 0 )
   {
      r = n % 10;
      Sum = Sum*10 + r;
      n = n/10;
   }
    if ( Sum == a )
      printf("\n %d is a palindrome number.", a);
   else
      printf("\n %d is not a palindrome number.", a);
   getch();
}


Output:-