~starkingdoms/starkingdoms

ref: 103444e57478b2f702c26a6dfb9a62b34a60e5fe starkingdoms/crates/kabel/test/runtime/fizzbuzz.kab -rw-r--r-- 248 bytes
103444e5 — core chore(wasm)!: fix compilations on webassembly 5 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"; }
}