Last active
April 22, 2016 01:34
-
-
Save kobaken0029/3fc3b992f296b68d5c5acaf62d75af69 to your computer and use it in GitHub Desktop.
phpでワンライナーfizzbuzz
This file contains 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
<?php foreach(range(1,100)as$i){echo($i%5&&$i%3?$i:'').($i%5?'':'fizz').($i%3?'':'buzz')."\n";} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment