eval.in

Paste #175

Io — Io 20110912, pasted 4 years ago

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
fib := method(n,
  if(n < 2,
    n,
    fib(n - 1) + fib(n - 2)
  )
)

fib(25) print

exit(0)

Program Output

75025

OK (0.868 sec real, 0.866 sec wall, 6 MB, 16 syscalls)

Fork