Skip to content

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.

License

Notifications You must be signed in to change notification settings

full-stack-web-developer-and-designer/PHP-FizzBuzz

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 

Repository files navigation

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

About

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.

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages