Guest User

Untitled

a guest
May 23rd, 2012
21
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.28 KB | None | 0 0
  1. puts "Tell us a palindrome"
  2. palindrome = gets.chomp
  3. if palindrome == palindrome.reverse
  4. puts "WOW! " + palindrome.upcase + " IS AN AWESOME PALINDROME!"
  5. else
  6. puts "Uhhh... " + palindrome.reverse.upcase + " ? Really? That is so not the same as " + palindrome.upcase + "."
  7. end
Advertisement
Add Comment
Please, Sign In to add comment