Question: (Palindromes) A palindrome is a string thats spelled the same way forward and backward. Some examples of palindromes are: radar, able was i ere i
(Palindromes) A palindrome is a string thats spelled the same way forward and backward. Some examples of palindromes are: radar, able was i ere i saw elba. Write a function testPalindrome that returns 1 if the string is a palindrome or 0 if it is not. Your main program should prompt the user to provide a string of characters, then display the characters the user input back on the screen and store them into a file. Then one more time display the string in reverse and append it to the same file below the original string the user provided
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
