C Program to Check Palindrome number
C Program to Check Palindrome number

C Program to Check Palindrome number in C

  • Post author:
  • Post category:C

C Program to Check Palindrome

Palindrome:- An integer is a palindrome number if the reverse of that number is equal to the original number. That is called a palindrome number. C Program to Check Palindrome number

Thank you for reading this post, don't forget to subscribe!

Palindrome number in c

#include <stdio.h>
int main()

{
int n, reversedN = 0, remainder, originalN;
printf(“Enter an integer: “);
scanf(“%d”, &n);
originalN = n;

 // reversed integer is stored in reversedN
while (n != 0) {
remainder = n % 10;
reversedN = reversedN * 10 + remainder;
n /= 10;
}

 // palindrome if orignalN and reversedN are equal
if (originalN == reversedN)
printf(“%d is a palindrome.“, originalN);
else
printf(“%d is not a palindrome.“, originalN);

return 0;
}

Palindrome number in c program

C Program to Check Palindrome number
C Program to Check Palindrome number

What is palindrome number in c

C Program to Check Palindrome number
C Program to Check Palindrome number

END

C program to draw a square using graphics (clickHere)

 

Note:- Maybe sometime above code doesn’t get user-friendly output, in codeblock ‘or’ any other EDITOR, All of C & C++ program tested in DOS compiler Turbo C.

Also Read

Types of functions in C    [button-blue url=”http://thesmolt.com/functions-in-c-and-graphics/” target=”_self” position=”right”]Read Here[/button-blue]

I hope you will understand better if you study at M.U, in the exam of M.U you know how important this “C

. So please don’t forget to give your valuable feedback. Go in the comment section and Give us some feedback about it. C program to Check Palindrome number or My website.

Our team check your every Comment per day Because your one feedback helps us in growing Thesmolt

I request you if you have any doubt or question regarding our site, then please don’t hesitate. We always waiting for your Suggestion.

Note:- If you want to Download This article’s in PDF form, then simply go (Top or Bottom of) Right corner and click on the PRINT icon, and it’s saved as a PDF of C program to Check Palindrome number

C Program to Check Whether a Number is Palindrome or Not

For further questions, you can contact us Via mail Ask@thesmolt.com  otherwise, Our Help Page and Contact us Page, which is included below. I hope I’ll able to say all the possible ways to reach us. Or Download My Android Application Below Download Button.

thesmolt App

Saurabh Nissa

This is SaurabhNissa, Owner of Thesmolt.com I'm Graduated from Magadh University in 2019 with 75%. Currently, I'm working on my Personal educational website for teaching Programming language free of Coast, and want to provide a Full setup for Specially BCA student