Files

11 lines
79 B
Ruby

def fib(n)
if n < 3
1
else
fib(n-1) + fib(n-2)
end
end
fib(34)