Advertisement
Guest User

Untitled

a guest
Dec 6th, 2019
113
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.12 KB | None | 0 0
  1. def Fib(n):
  2. if n == 0 or n == 1:
  3. return n
  4. return Fib(n - 1) + Fib(n - 2)
  5.  
  6. n = int(input())
  7. print(Fib(n))
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement