~garritfra/antimony

antimony/examples/fib.sb -rw-r--r-- 154 bytes
36db9aecGarrit Franke remove accidental test file 1 year, 1 month ago
                                                                                
1
2
3
4
5
6
7
8
9
10
11
fn main() {
    let num: int = 10
    println(fib(num))
}

fn fib(n: int): int { 
    if 1 >= n {
        return n
    }
    return fib(n-1) + fib(n-2)
}