Created
June 3, 2017 10:56
-
-
Save joisino/dd4366ca4df4c4f5405e3ad174ee069b 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
int fib( int n ){ | |
if( n <= 1 ){ | |
return n; | |
} | |
return fib( n - 1 ) + fib( n - 2 ); | |
} | |
int main(){ | |
return fib( 10 ); | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment