C Program to check given number is palindrome number or not

C Program to check given number is Palindrome number or not

This page has a C Program to check given number is palindrome number or not. Palindrome number is an Integer Number.  If the reverse of the given number is equal to the given number, then the given number is called Palindrome number. Example of Palindrome Number : 45154. The below given C Program to check given number is palindrome number or not. Kindly check out the program to check a given number is palindrome number or not. The palindrome or not program can be asked in different ways for school and college going students. The questions to check a given number is palindrome number or not can be asked as 

1). C Program to check whether a number is Palindrome or not
2). C program to check whether the given number is palindrome or not
3). C program to check whether an integer number is Palindrome or not
4). C Program to Check a Number is Palindrome or Not 
5). C program to find a Palindrome
6). C Program to check a number is palindrome number or not

7). C Program to find entered number is palindrome number or not
8). Program to find palindrome or not
9). Program to find palindrome numbers
10). Program to find a given number is palindrome or not
11). Program to find a number is palindrome or not
12). C program to check a given number is palindrome number or not


C Program to check palindrome number or not: 


#include<stdio.h>

int main(){

    int numbr,input,rem,sum=0;

    printf("Enter an integer number: ");

    scanf("%d",&numbr);

    input=numbr;

    while(numbr>0){

         rem=numbr%10;

         numbr=numbr/10;

         sum=sum*10+rem;

    }

    if(input==sum)

         printf("The given number %d is a palindrome",input);

    else

         printf("The given number  %d is not a palindrome",input);

    return 0;

}

 


Sample output:

Enter an integer number: 26762

The given number  26762 is a palindrome

 

Enter an integer number: 276

The given number  276 is not a palindrome

 


Other Related C Programs :


* C Program to find whether the given number is Odd or Even

* C Program to find the Sum of Odd Digits

* C Program to find the Sum of Even Digits

* C Program to find the Sum of Even and Odd Digits,

* C Program to Display Odd digits

* C Program to Display even digits

* C Program to Display Odd Numbers,

* C Program to Display Even Numbers,

* C Program to Check whether the given number is Armstrong number

* C Program to display the Armstrong numbers in Range

* C Program to display the Armstrong numbers between 1 and 1000

* C Program to check perfect number, perfect numbers in range

* C Program to Check Prime number, Prime numbers between 1 and 100

* C Program to display the Prime numbers in a Range

* C Program to display the Sum of Prime numbers

* C Program to Check Strong number

* C Program to display the Strong number in Range

* C Program to Check whether the given number is polindrome number or not

* C Program to Check polindrome number using for loop

* C Program to Check polindrome number using Recursion

* C Program to  check whether the given string is polindrome or not

* C Program to find the Roots of Quadratic equation

* C Program to display Fibonacci Series

* C Program to display the Fibonacci Series using an array

* C Program to display the Fibonacci Series using while loop

* C Program to find the Sum of Fibonacci Series, Factorial of Number

* C Program to find the Factorial without using Recursion

* C Program to find the Factorial using Pointers

* C Program to find the Factorial using Function

Bookmark and Share