Skip to content

Instantly share code, notes, and snippets.

@masnnuller
Created November 25, 2011 02:50
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 1 You must be signed in to fork a gist
  • Save masnnuller/1392719 to your computer and use it in GitHub Desktop.
Save masnnuller/1392719 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