Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- //Write a program that reads a message, then checks whether it's a palindrome
- //(the letters in the message are the same from left to right as right to left):
- //Enter a message: He lived as a devil, eh?
- //Palindrome
- //Enter message: Madam, I am Adam.
- //Not a palindrome
- //Ignore all characters that aren't letters. Use integer variables to keep track of positions in the array.
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement