def fib(n) return n if (0..1).include? n fib(n-1) + fib(n-2) if n > 1 end puts fib(7)