Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- function matrix(num){
- let col = '';
- for(let i = 0; i < num; i++){
- col += num;
- }
- for(let j = 0; j < num; j++){
- console.log(Number(col));
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement