Sofya_Soloveva_

Untitled

Jul 23rd, 2019
123
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Python 0.13 KB | None | 0 0
  1. def FibRec(N):
  2.     if N <= 1:
  3.         return N
  4.     else:
  5.         return FibRec(N-1) + FibRec(N-2)
  6. print(FibRec(int(input())))
Advertisement
Add Comment
Please, Sign In to add comment