Functions & types

Functions use fun name(params) -> type. Parameters are explicitly typed, and so is the return value.

fun square(i32 n) -> i32 {
    return n * n
}

Here main already calls add(20, 22) and returns the result. Right now add returns 0, so the program returns 0.

Your task: make add return the sum of its two parameters (a + b). When it’s correct, main returns 42.