about summary refs log blame commit diff
path: root/users/tazjin/rlox/examples/fib.lox
blob: 1b91e9db94ac39cbb5a487d9bd7c856edbe0b42d (plain) (tree)
1
2
3
4
5
6





                                 
fun fib(n) {
  if (n <= 1) return n;
  return fib(n - 2) + fib(n - 1);
}

print fib(30);