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