~starkingdoms/starkingdoms

ref: 859f8c9c72e73a217401cdf552f46672811b1dc6 starkingdoms/kabel/test/runtime/fizzbuzz.kab -rw-r--r-- 248 bytes
859f8c9c — core appease clippy 11 months 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"; }
}