diff options
Diffstat (limited to 'src/a.php')
| -rw-r--r-- | src/a.php | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/src/a.php b/src/a.php new file mode 100644 index 0000000..1003341 --- /dev/null +++ b/src/a.php @@ -0,0 +1,13 @@ +<?php +for ($i = 1; $i <= 100; $i++) { + if ($i % 15 === 0) { + echo "FizzBuzz"; + } elseif ($i % 3 === 0) { + echo "Fizz"; + } elseif ($i % 5 === 0) { + echo "Buzz"; + } else { + echo $i; + } + echo "\n"; +} |
