~starkingdoms/starkingdoms

ref: 6f949473ea4886e5054dc2e360af440501a8a0b2 starkingdoms/crates/kabel/test/runtime/fizzbuzz.kab -rw-r--r-- 248 bytes
6f949473 — core netcode: fix attachment(2) (i odiot) 4 days ago
                                                                                
1
2
3
4
5
6
for (var i = 1; i < 101; i++) {
  if (i % 3 != 0 && i % 5 != 0) { print i; }
  else if (i % 3 == 0 && i % 5 != 0) { print "Fizz"; }
  else if (i % 3 != 0 && i % 5 == 0) { print "Buzz"; }
  else if (i % 3 == 0 && i % 5 == 0) { print "FizzBuzz"; }
}