Last active
August 29, 2015 14:00
-
-
Save tristanm/11201771 to your computer and use it in GitHub Desktop.
Times Table Chart Generator
This file contains hidden or 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
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