Skip to content

Instantly share code, notes, and snippets.

@jmatt
Created May 5, 2012 20:43
Show Gist options
  • Select an option

  • Save jmatt/2605499 to your computer and use it in GitHub Desktop.

Select an option

Save jmatt/2605499 to your computer and use it in GitHub Desktop.
fizzbuzz in under 140 characters
#define F(f,r) printf("%s",i%f?"":#r"zz")
int main(int i){for(--i;i++^100;puts(""))F(3,Fi)|F(5,Bu)||printf("%i",i);}
@jmatt
Copy link
Author

jmatt commented May 5, 2012

See http://rosettacode.org/wiki/FizzBuzz for other interesting implementations,

@jmatt
Copy link
Author

jmatt commented Apr 17, 2015

@nfaction
Copy link

Why u no leave "curl -L goo.gl/5Rssr1 | gcc -xc - && ./a.out && /bin/rm ./a.out"

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment