Skip to content

Instantly share code, notes, and snippets.

@muzea
Created March 29, 2019 03:57
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save muzea/aa0e8bb1bde820514de57e25b007a927 to your computer and use it in GitHub Desktop.
Save muzea/aa0e8bb1bde820514de57e25b007a927 to your computer and use it in GitHub Desktop.
print
function print() {
let start = 0;
const n = [1, 3, 9];
let count = 27;
while (count) {
console.log(n.map(it => (Math.floor(start / it) % 3) + 1).join(' '))
start += 1;
count -= 1;
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment