Created
April 19, 2020 15:05
-
-
Save Deep18-03/aef05fe7ea35487d7373888cb8a5f632 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#fibonaci | |
def fibonaci(n): | |
if n==1: | |
return 0 | |
elif n==2: | |
return 1 | |
else: | |
return fibonaci(n-1)+fibonaci(n-2) | |
number=int(input("enter value")) | |
print(fibonaci(number)) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment