def fib(a) return a if a <= 1 fib(a - 2) + fib(a - 1) end puts fib(10)