public
Created

FizzBuzz One Liner

  • Download Gist
gistfile1.php
PHP
1 2 3 4 5 6
// 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");

Please sign in to comment on this gist.

Something went wrong with that request. Please try again.