Skip to content

Instantly share code, notes, and snippets.

@muzea
Created March 29, 2019 03:57
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