Last active
July 26, 2019 16:09
-
-
Save abhiaiyer91/c091d722aefe5e19bd61bf9616892560 to your computer and use it in GitHub Desktop.
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
// Print out the grade-school multiplication table up to 12x12 | |
function multiplicationTable(maxValue) { | |
for (var i = 1; i <= maxValue; i++) { | |
let line | |
for (var j = 1; j <= maxValue; j++) { | |
line = line + ` ${j * i}`; | |
} | |
console.log(line) | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment