Question: Write a program that takes a sentence as an input and checks whether that sentence is a palindrome. A palindrome is a word, phrase, or
Write a program that takes a sentence as an input and checks whether that sentence is a palindrome. A palindrome is a word, phrase, or sentence that is symmetrical; that is, it is spelled the same forward and backward. Examples are “otto”, “mom”, and “Able was I ere I saw Elba”. Your program should be case insensitive; that is, “Otto” should also be counted as a palindrome.
Step by Step Solution
3.50 Rating (157 Votes )
There are 3 Steps involved in it
Please find the required program along with its output Please see the comments against each ... View full answer
Get step-by-step solutions from verified subject matter experts
