Skip to content

Instantly share code, notes, and snippets.

@korobochka
Created October 6, 2013 09:16
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 korobochka/6851575 to your computer and use it in GitHub Desktop.
Save korobochka/6851575 to your computer and use it in GitHub Desktop.
#include <stdio.h>
long long int arr[77];
void main()
{
arr[0] = 1;
arr[1] = 1;
int n;
for(n = 0; n < 77; n++)
{
if(n > 1) arr[n] = arr[n - 1] + arr[n - 2];
printf("fibbonacci: %i -> %lld\n", n + 1, arr[n]);
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment