Advertisement
Guest User

Untitled

a guest
Jun 28th, 2017
154
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.37 KB | None | 0 0
  1. //Write a program that reads a message, then checks whether it's a palindrome
  2. //(the letters in the message are the same from left to right as right to left):
  3. //Enter a message: He lived as a devil, eh?
  4. //Palindrome
  5. //Enter message: Madam, I am Adam.
  6. //Not a palindrome
  7. //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