Skip to content

Instantly share code, notes, and snippets.

@a1phanumeric
Created October 17, 2012 20:07
Show Gist options
  • Star 1 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save a1phanumeric/3907827 to your computer and use it in GitHub Desktop.
Save a1phanumeric/3907827 to your computer and use it in GitHub Desktop.
FizzBuzz One Liner
// PHP FizBuzz Solution
// Trying to get lowest bytecount.
// P.S. Yes, I know it's in PHP yadda-yadda-yadda
for($i=1;$i<=100;$i++)print((($i%15==0)?'FizzBuzz':(($i%5==0)?'Buzz':(($i%3==0)?'Fizz':$i)))."\n");
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment