Skip to content

Instantly share code, notes, and snippets.

@tristanm
Last active August 29, 2015 14:00
Show Gist options
  • Save tristanm/11201771 to your computer and use it in GitHub Desktop.
Save tristanm/11201771 to your computer and use it in GitHub Desktop.
Times Table Chart Generator
values = (0..12).to_a
values.product(values).each do |factors|
product = factors[0] * factors[1]
puts "#{factors[0]} x #{factors[1]} = #{product}"
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment