Skip to content

Instantly share code, notes, and snippets.

@amankharwal
Created November 23, 2020 10:35
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save amankharwal/cc579926f69765e21c1d1ee64179a42a to your computer and use it in GitHub Desktop.
Save amankharwal/cc579926f69765e21c1d1ee64179a42a to your computer and use it in GitHub Desktop.
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