fibonacci.er 178 B

1234567891011121314
  1. fun fibo(Int64 n) -> Int64
  2. {
  3. if n < 2 {
  4. return 1;
  5. }
  6. return fib(n - 2) + fib(n - 1);
  7. }
  8. fun main
  9. {
  10. write("Fibonacci sequence 20th number: ", fibo(20));
  11. }