Create a gist now

Instantly share code, notes, and snippets.

What would you like to do?
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