NxN Matrix

Lulunga Jun 20th, 2019 50 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. function solve(n){
  2.    for (let i = 0; i < n; i++) {
  3.        element=n.toString()+' ';
  4.       console.log(element.repeat(n));
  5.   }
  6. }
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand