3 lines
53 B
Crystal
3 lines
53 B
Crystal
def fib(n)
|
|
n < 2 ? n : fib(n - 1) + fib(n - 2)
|
|
end
|
def fib(n)
|
|
n < 2 ? n : fib(n - 1) + fib(n - 2)
|
|
end
|