Skip to content

Instantly share code, notes, and snippets.

@gabrielengel
Created November 9, 2011 01:16
Show Gist options
  • Save gabrielengel/1349991 to your computer and use it in GitHub Desktop.
Save gabrielengel/1349991 to your computer and use it in GitHub Desktop.
Tabuaba de 1 a 10
(1..10).each do |y|
(1..10).each do |x|
result = y * x
if result < 10
print " #{result}"
elsif result < 100
print " #{result}"
else
print result
end
print " | "
end
puts
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment