-
-
Save Beyarz/b6ec3d8cad850c4b4422db7ce4eed98b to your computer and use it in GitHub Desktop.
Ruby program that prints a multiplication table (12 x 12 field).
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
# frozen_string_literal: true | |
range = 1.upto(12) | |
range.each do |item| | |
range.map { |element| print "#{item * element} " } && puts | |
end |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment