I need to create a program and have it output if it is a palindrome or not.
I have to use two function, one that collects the input and the other determines if the string is a palindrome or not.
The output should look like
"The string mom is a palindrome" or "The string momx is not a palindrome. The character in position 0 is m, while the character in position 3 is x"
You have a problem in your "checkinput()" function. Your for-loop limit should be: j < s.length;
To see if what the user types is a palindrome, you're going to need to first compare the beginning letter to the last letter, then the next letter to the next-to-the-last letter, and so on.