Created
January 22, 2011 17:55
-
-
Save tenkoma/791302 to your computer and use it in GitHub Desktop.
FizzBuzz Program written in 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
<?php foreach(range(1,100)as$i){$s=($i%3<1?'Fizz':'').($i%5<1?'Buzz':'');echo($s?$s:$i)."\n";} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment