Question: just use if , for, while, cout , cin Repeat the previous problem, but instead of reading a five-digit integer, now you have to retrieve
just use if , for, while, cout , cin

Repeat the previous problem, but instead of reading a five-digit integer, now you have to retrieve an input string of any size from the user. If you encounter white spaces, you need to ignore them, for example, the following are palindromes: "bob", "a car a man a maraca" "a nut for a jar of tuna" etc. Enter a string (or - 1 to quit): bob The word "bob" is a palindrome! Enter a string (or -1 to quit): car The word "car" is not a palindrome. Enter a string (or -1 to quit): a car a man a maraca The statement "acaramanamaraca" is a palindrome! Enter a string (or - 1 to quit): -1 Good bye
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
