~starkingdoms/starkingdoms

ref: 06663f6e947e1f514a0dd87b4e256ef9de377d17 starkingdoms/crates/kabel/test/runtime/fizzbuzz.kab -rw-r--r-- 248 bytes
06663f6e — core feat(netcode-rewrite): remove all networking 30 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"; }
}