Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- puts "Tell us a palindrome"
- palindrome = gets.chomp
- if palindrome == palindrome.reverse
- puts "WOW! " + palindrome.upcase + " IS AN AWESOME PALINDROME!"
- else
- puts "Uhhh... " + palindrome.reverse.upcase + " ? Really? That is so not the same as " + palindrome.upcase + "."
- end
Advertisement
Add Comment
Please, Sign In to add comment