~garritfra/antimony

ref: 5e8aad974f24e782bf8ee9319a238ee1aa0892a0 antimony/examples/fib.sb -rw-r--r-- 154 bytes
5e8aad97Garrit Franke fix(ci): deploy action 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)
}