I'm kind of curious as to how to have a program recognize a palindrome. Like if someone entered a word, the program could tell them whether or not it is a palindrome. Or if a program could take an inputted word and reverse it. Anyone know how these would work?
Okay that was really helpful, thanks! I got a function to work for the determining palindrome, and I got one to work for reversing a string, but I want to have an option to select one or the other, and the if statements I used don't seem to work. If I add the if statements, the program no longer gets input, and just prints that " is a palindrome." What am I doing wrong??