Skip to content

Instantly share code, notes, and snippets.

@afr-dt
Created December 8, 2015 04:04
Show Gist options
  • Save afr-dt/a57c5266c7ef421ef7ce to your computer and use it in GitHub Desktop.
Save afr-dt/a57c5266c7ef421ef7ce to your computer and use it in GitHub Desktop.
Tabla multiplicar Ruby
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