git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@11708 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
8 lines
85 B
Python
8 lines
85 B
Python
def fib(n):
|
|
if n < 3:
|
|
return 1
|
|
else:
|
|
return fib(n-1) + fib(n-2)
|
|
|
|
fib(34)
|