Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- def Fib(n):
- if n == 0 or n == 1:
- return n
- return Fib(n - 1) + Fib(n - 2)
- n = int(input())
- print(Fib(n))
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement