Skip to content

Instantly share code, notes, and snippets.

@m-primo
Created April 25, 2020 14:47
Show Gist options
  • Save m-primo/3bbda6629c785f1b5c8383649cba24fd to your computer and use it in GitHub Desktop.
Save m-primo/3bbda6629c785f1b5c8383649cba24fd to your computer and use it in GitHub Desktop.
fibnaccio series in c
int fibonacci(int i) {
if(i == 0 || i == 1) return i;
return fibonacci(i-1) + fibonacci(i-2);
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment