Cosmo/test.py

7 lines
98 B
Python
Raw Normal View History

2020-10-28 05:16:30 +00:00
def fib(i):
if i < 2:
return i
return fib(i - 2) + fib(i - 1)
print(fib(35))