C program for palindrome

Prev     Next

C program example for palindrome:

What is palindrome?

  • When a number or word or a phrase or a sequence of characters which resembles the same while reading them from backward are called palindrome.
  • Palindrome examples: 2882, madam, noon, level.
  • The above examples resemble as same while reading them from backward also. If you read number “2882” from backward, it is same as “2882”. If you read the word “madam” from backward, it is same as “madam”

Example C program to check a number whether it is palindrome or not:

Output of C program for palindrome:

Please enter a number to check Palindrome : 656
Entered number: 656
Reversed number: 656
Entered number 656 is a palindrome

Example C program to check a word whether it is palindrome or not:

Output of C program for palindrome:

Please enter a word to check Palindrome : madam
Entered word: madam
Entered word “madam” is a palindrome

Prev     Next

1. Online Compilers - Compile & Run your C/C++ programs:

✅ Online Compilers

2. Ask your questions or clarify your/others doubts from,

✅ Online Discussion Forums by Fresh2Refresh.com





Share this website !!!
Facebook Twitter Linkedin

Close
We Support JALLIKATTU !!!
We Support JALLIKATTU!
By Fresh2Refresh.com
Show Your Support as well. Thanks!