Source: https://github.com/ardalis/kata-catalog
FizzBuzz is a simple number game in which you count, but replace certain numbers with the words "Fizz" and/or "Buzz", adhering to certain rules.
- Create a FizzBuzz() method that prints out the numbers 1 through 100, separated by newlines.
- Instead of numbers divisible by 3, the method should output "Fizz".
- Instead of numbers divisible by 5, the method should output "Buzz".
- Instead of numbers divisible by 3 and 5, the method should output "FizzBuzz".
1
2
Fizz
4
Buzz
Fizz
7
8
Fizz
Buzz
11
Fizz
13
14
FizzBuzz
16
- Instead of numbers with a three in them, print "Fizz".
- Instead of numbers with a five in them, print "Buzz".
- Instead of numbers with a three and a five in them, print "FizzBuzz".