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