Last active
March 2, 2018 22:56
-
-
Save DaviRamosAndrade/1975cee1578796d35e6465ce8ae8cff0 to your computer and use it in GitHub Desktop.
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 n) | |
{ | |
return abs(n) > 1 ? fibonacci(n - 1) + fibonacci(n - 2) : 1; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment