My solution to the FizzBuzz kata, using TDD principles.
This program prints numbers 1 to 100.
If the number is a multiple of 3, instead print "Fizz".
If the number is a multiple of 5, print "Buzz".
If the number is a multiple of both 3 and 5, print "FizzBuzz".
Sample output:
1
2
Fizz
4
Buzz
Fizz
7
8
Fizz
Buzz
11
Fizz
13
14
FizzBuzz
16
17
Fizz
19
Buzz
...