Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- function printMatrix (n) {
- for (let i = 1; i <= n; i++) {
- let row = "";
- for (let i = 1; i <= n; i++) {
- row += n + " ";
- }
- console.log(row);
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement