Skip to content

Instantly share code, notes, and snippets.

@amankharwal
Created Nov 23, 2020
Embed
What would you like to do?
int get_term_fib(int n){
if (n == 0)
return 0;
if (n == 1)
return 1;
return get_term_fib(n - 1) + get_term_fib(n - 2);
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment