Rookie::playground
class example_fibo { @main static def main() { print(fib(10)); } static def fib(x) { if (x == 0) return 0; if (x == 1) return 1; return fib(x-1) + fib(x-2); } }
Fork me on GitHub