Created
December 8, 2015 04:04
-
-
Save afr-dt/a57c5266c7ef421ef7ce to your computer and use it in GitHub Desktop.
Tabla multiplicar 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 "Ingrese el número a multiplicar" | |
number = gets | |
number = number.to_i | |
for i in(1..10) | |
mul = i * number | |
puts "#{number} * #{i} = #{mul}" | |
end |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment