mirror of
https://github.com/ruby/ruby.git
synced 2022-11-09 12:17:21 -05:00
8 lines
92 B
Python
8 lines
92 B
Python
|
def fib(n):
|
||
|
if n < 3:
|
||
|
return 1
|
||
|
else:
|
||
|
return fib(n-1) + fib(n-2)
|
||
|
|
||
|
fib(34)
|