Created
July 4, 2018 05:37
-
-
Save supphawit/0e45184a4a77a68d520c780db5b7993f 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
def fibo_re(n): | |
if n == 0: | |
return 0 | |
elif n == 1: | |
return 1 | |
else: | |
return fibo_re(n-1) + fibo_re(n-2) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment