Created
April 25, 2020 14:47
-
-
Save m-primo/3bbda6629c785f1b5c8383649cba24fd to your computer and use it in GitHub Desktop.
fibnaccio series in c
This file contains hidden or 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
int fibonacci(int i) { | |
if(i == 0 || i == 1) return i; | |
return fibonacci(i-1) + fibonacci(i-2); | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment