adventofcode-2016/day25/test.js
2016-12-27 12:15:01 +00:00

13 lines
130 B
JavaScript

var b = 8;
var a = 0;
var c = 2;
while(b != 0){
b = b - 1;
c = c - 1;
if(c == 0){
a++;
c = 2;
}
}
console.log(c);