fn fizzbuzz(n: Int): String = if n % 15 == 0 then "FizzBuzz" else if n % 3 == 0 then "Fizz" else if n % 5 == 0 then "Buzz" else toString(n)

fn printFizzbuzz(i: Int, max: Int): Unit with {Console} =
    if i > max then () else {
    Console.print(fizzbuzz(i))
    printFizzbuzz(i + 1, max)
}

fn main(): Unit with {Console} = printFizzbuzz(1, 100)

let output = run main() with {}
