Fizz Buzz Kata

Fizz Buzz is well-known introduction to programming exercises and katas, because it has a simple enough premise that one can learn the approach of the exercises without worrying about the challenge of any code itself.

This kata replicates a simple number game in which you count numbers, but replace some of the numbers with “Fizz”, “Buzz”, or “FizzBuzz” depending on the divisors of the number. For numbers divisible by 3, replace with “Fizz”. For numbers divisible by 5, replace with “Buzz”. For those divisible by both, replace with “FizzBuzz”.

Instructions

1
2
Fizz
4
Buzz
Fizz
7
8
Fizz
Buzz
11
Fizz
13
14
FizzBuzz
16

Fizz Buzz Extra Credit

Finished the exercise early and want to add a bit more complexity?