Created
December 12, 2014 14:25
-
-
Save sasezaki/f8440f80007a9ad43ad6 to your computer and use it in GitHub Desktop.
seq 100 | php -d short_open_tag=1 streeem.php
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
<? | |
while($x = fgets(STDIN)?:die) { | |
if ($x % 15 == 0): | |
?>FIZZBUZZ<? | |
elseif ($x % 3 == 0): | |
?>FIZZ<? | |
elseif ($x % 5 == 0): | |
?>Buzz<? | |
else: ?>x<? | |
endif; ?> | |
<?} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment