fn factorial(n: Int): Int = if n <= 1 then 1 else n * factorial(n - 1)

let result = factorial(10)

fn showResult(): Unit with {Console} = Console.print("10! = " + toString(result))

let output = run showResult() with {}
