A palindrome is a phrase that reads the same both forward and backward. Write a C++ program that reads a line from cin, prints its characters in reverse order on cout, and then pronounces judgment on whether the input line is a palindrome. For example, here are two sample runs of the program:
Hint: Use the substr function within a loop to extract and print the characters one by one from the string, starting at the end of the string; at the same time, extract the corresponding character starting at the beginning of the string to compare with it.
Use a prompting message, meaningful variable names, proper indentation, and appropriate comments. Thoroughly test the program using your own data sets.
We need at least 10 more requests to produce the solution.
0 / 10 have requested this problem solution
The more requests, the faster the answer.