Skip to content

dan-the-dev/kata-fizz-buzz-php-old

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

13 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

KATA SKELETON - PHP VERSION

FIZZ BUZZ

Write a program that prints all the numbers from 1 to 100, but with some exceptions:

  • for all numbers that are multiples of 3, print “Fizz” instead of the number itself
  • for all numbers that are multiples of 5, print “Buzz” instead of the number itself
  • for all numbers that are multiples of both 3 and 5, print “FizzBuzz” instead of the number itself

Assigment

At the very minimum, write a program that solves the problem. Make it the best use you can of all the clean code principles you know, but also show us your habit on using GIT and everything else you tipically use. Feel free to add a section to this README to add some notes from your side.

Bonus/advanced objective:

  • write automated tests that prove that the code solves the problems
  • use TDD (use GIT in a good way to show the TDD Cycle by committing each step)

Feel free to use this repository as a template for your one, or fork from this: in this branch, you have a ready-to-use PHP project with a stupid class and its own stupid test, that you can use as a starting point for your solution. If you prefer another language or simply starting from scratch, feel free to do it, just be sure to copy this README file in the repository as a reference. Thanks!

Input/Output table example

Input Output
1 1
2 2
3 Fizz
4 4
5 Buzz
6 Fizz
7 7
8 8
9 9
10 Buzz
11 11
12 Fizz
13 13
14 14
15 FizzBuzz
... ...
90 FizzBuzz
91 91
92 92
93 Fizz
94 94
95 Buzz
96 Fizz
97 97
98 98
99 Fizz
100 Buzz

About

Repo dedicated to fizz buzz kata (PHP)

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published