fn square(n: Int): Int = n * n

fn cube(n: Int): Int = n * n * n

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

fn sumRange(start: Int, end: Int): Int = if start > end then 0 else start + sumRange(start + 1, end)
