Skip to content

Instantly share code, notes, and snippets.

@agentfin
Created October 11, 2011 16:06
Show Gist options
  • Save agentfin/1278517 to your computer and use it in GitHub Desktop.
Save agentfin/1278517 to your computer and use it in GitHub Desktop.
Palindrome Checker
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
@agentfin
Copy link
Author

doing my HOMEWORK

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment