Created
May 5, 2012 20:43
-
-
Save jmatt/2605499 to your computer and use it in GitHub Desktop.
fizzbuzz in under 140 characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode 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);} |
Author
Author
Want to run it?
curl https://gist.githubusercontent.com/jmatt/2605499/raw/de44249b1b23aaa57c889e33cffa4ea96c0635ec/fizzbuzz.c | gcc -xc - && ./a.out
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
See http://rosettacode.org/wiki/FizzBuzz for other interesting implementations,