Skip to content

Instantly share code, notes, and snippets.

@ali2236
Created October 13, 2020 09:55
Show Gist options
  • Save ali2236/40623dff170e09ad4e2503d49c9b8859 to your computer and use it in GitHub Desktop.
Save ali2236/40623dff170e09ad4e2503d49c9b8859 to your computer and use it in GitHub Desktop.
fibonacci in c
long long fibonacci(long long n) {
if (n <= 1) return 1;
return fibonacci(n - 1) + fibonacci(n - 2);
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment