Skip to content

Instantly share code, notes, and snippets.

@snuke
Created May 2, 2013 03:05
Show Gist options
  • Save snuke/5499902 to your computer and use it in GitHub Desktop.
Save snuke/5499902 to your computer and use it in GitHub Desktop.
int main(){
int a = 1, b = 1;
for( ; a < 1000000; a += b, b = a-b){
printf("%d\n",a);
}
return 0;
}
1
2
3
5
8
13
21
34
55
89
144
233
377
610
987
1597
2584
4181
6765
10946
17711
28657
46368
75025
121393
196418
317811
514229
832040
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment