Question: Write a program called palindrome.cpp that allows the user to enter a word. It then prints the word in reverse, then informs the user whether
Write a program called palindrome.cpp that allows the user to enter a word. It then prints the word in reverse, then informs the user whether or not it is a palindrome.
Program 4 Example Output
This program is used to detect a palindrome. Please enter a word: Hello Your word in reverse: olleH This word is not a palindrome.
Extra Credit: Make your program work with palindrome sentences. For example: A man, a plan, a canal: Panama.
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
