Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
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.
- Host: GitHub
- URL: https://github.com/full-stack-web-developer-and-designer/php-fizzbuzz
- Owner: Full-Stack-Web-Developer-and-Designer
- License: mit
- Created: 2023-01-27T23:47:10.000Z (almost 2 years ago)
- Default Branch: master
- Last Pushed: 2023-01-28T00:28:28.000Z (almost 2 years ago)
- Last Synced: 2023-10-31T04:30:41.268Z (about 1 year ago)
- Topics: fizzbuzz, fizzbuzz-php, mirnesglamocic, php, whileloop
- Language: PHP
- Homepage: https://replit.com/@MirnesGlamocic/PHP-FizzBuzz?v=1
- Size: 1.95 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
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)