Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/full-stack-web-developer-and-designer/php-fizzbuzz

PHP FizzBuzz using a while loop to print all numbers from 1 to 100, while replacing all multiples of 3, 5, and 15 with specific words.
https://github.com/full-stack-web-developer-and-designer/php-fizzbuzz

fizzbuzz fizzbuzz-php mirnesglamocic php whileloop

Last synced: 7 days ago
JSON representation

PHP FizzBuzz using a while loop to print all numbers from 1 to 100, while replacing all multiples of 3, 5, and 15 with specific words.

Awesome Lists containing this project

README

        

# PHP FizzBuzz
This repository contains a classic PHP problem where it is necessary to print all the numbers from 1 to 100, while making an important substitution:
1. All multiples of the number 3 are replaced with the word "Fizz".
2. All multiples of the number 5 are replaced with the word "Buzz".
3. All multiples of the number 15 are replaced by the word "FizzBuzz".

This was done using a PHP while loop.

---

To check how it looks, click on the preview and then on the green run button.
##
[PREVIEW](https://replit.com/@MirnesGlamocic/PHP-FizzBuzz?v=1)