Create 1 - Nibbofacci
This commit is contained in:
parent
f3944fef5f
commit
34c647744f
5
18/1 - Nibbofacci
Normal file
5
18/1 - Nibbofacci
Normal file
@ -0,0 +1,5 @@
|
|||||||
|
def Fibonacci(n):
|
||||||
|
if (n==1 or n==2):
|
||||||
|
return 1
|
||||||
|
else:
|
||||||
|
return Fibonacci(n-1) + Fibonacci(n-2)
|
Loading…
Reference in New Issue
Block a user