Question
in C++ A palindrome is a word, phrase, verse, or sentence that reads the same backward or forward. For example: A man, a plan, a
in C++
A palindrome is a word, phrase, verse, or sentence that reads the same backward or forward. For example: A man, a plan, a canal, Panama!
Ask the user for a string and check to see if it is a palindrome. (Remove all the spaces and punctuation before you check.
Also make sure that you convert everything into the same case, upper or lower case, before you check.
After the palindrome check, if there are any digits in the string, extract them one by one to create a number. (Example: The string 12Heh21 is a palindrome and the number is 1221.) Take the number and multiply it by your age and display the results.
Step by Step Solution
There are 3 Steps involved in it
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started