Skip to content

Instantly share code, notes, and snippets.

@mactkg
Forked from masnnuller/missFibBuzz
Created November 25, 2011 02:52
Show Gist options
  • Save mactkg/1392729 to your computer and use it in GitHub Desktop.
Save mactkg/1392729 to your computer and use it in GitHub Desktop.
#include<stdio.h>
main(){
unsigned long long a[3]={0L,1L,1L},b,c=0;
printf("%d\n%d\n",a[1],a[2]);
for(b=0;b-98;b++){
c=0;
a[b%3]=a[(b+1)%3]+a[(b+2)%3];
if(!(a[b%3]%3))printf("Fizz"),c=1;
if(!(a[b%3]%5))printf("Buzz"),c=1;
if(!c)printf("%lld",a[b%3]);
puts("");
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment