Created
October 11, 2011 16:06
-
-
Save agentfin/1278517 to your computer and use it in GitHub Desktop.
Palindrome Checker
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
doing my HOMEWORK