Last active
March 22, 2016 02:30
-
-
Save alvaroalvarez/052757498531f7194694 to your computer and use it in GitHub Desktop.
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 "Insert to Palindromo" | |
string=gets.chomp.downcase.delete(" ") | |
if((string)==string.reverse) | |
puts "#{string} es un palindromo" | |
else | |
puts "#{string} no un es palindromo" | |
end |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
First code, tested: "sera lodo o dolares"