Created
March 26, 2013 17:48
-
-
Save g3ortega/5247520 to your computer and use it in GitHub Desktop.
Testing Ruby!
This file contains 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 "Hello World!" | |
puts 2 + 3 * 5 | |
puts "Ho! " + "Ho! " + "Merry Christmas's!" | |
puts "Ho! " * 3 + "Merry Christmas's"; | |
puts "toc toc Penny! " * 3 | |
puts "*" * 60 | |
puts "The length of \t\"Merry Christmas\" is: \n" | |
puts 'The length of \"Merry Christmas\" is: \n' | |
print "Hello\n" + "Gerardo\n" | |
nombre = "Gera\n" | |
puts "*" * 15 | |
puts nombre.length | |
puts nombre.chomp.length | |
puts "Merry Christmas".length | |
puts "Merry Christmas".upcase | |
puts "Merry Christmas".downcase | |
puts "Merry Christmas".reverse | |
puts gets | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment