Skip to content

Commit

Permalink
*
Browse files Browse the repository at this point in the history
  • Loading branch information
imteekay committed May 13, 2023
1 parent 051688d commit daeda05
Showing 1 changed file with 15 additions and 0 deletions.
15 changes: 15 additions & 0 deletions college/web/loop.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
let matrix = [];

for (let row = 1; row <= 4; row++) {
let nums = [];
let num = row + 1;

for (let col = 1; col <= 5; col++) {
nums.push(num);
num += row + 1;
}

matrix.push(nums);
}

console.log(matrix);

0 comments on commit daeda05

Please sign in to comment.