~starkingdoms/starkingdoms

ref: 98e54c6b311e695cf0ea32f7111afaf48ce2b222 starkingdoms/crates/kabel/test/runtime/fizzbuzz.kab -rw-r--r-- 248 bytes
98e54c6b — core Revert "feat: serverbound messages implemented but untested" 7 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"; }
}