Skip to content

Instantly share code, notes, and snippets.

@hhc0null
Created October 27, 2013 16:36
Show Gist options
  • Save hhc0null/7184669 to your computer and use it in GitHub Desktop.
Save hhc0null/7184669 to your computer and use it in GitHub Desktop.
i did my best...turai...
char b[10];
void fizzbuzz(int x){for(int i=1;i<=x;i++){sprintf(b,"%d",i),printf("%s\n",i%15?i%3?i%5?b:"buzz":"fizz":"fizzbuzz");}}
void main(int c,char **v) {fizzbuzz(atoi(v[1]));}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment