Program prints numbers 1 to 100. For multiples of three, program prints "Fizz" instead of the number and for multiples of five, it prints "Buzz". For numbers which are multiples of both three and five, program prints "FizzBuzz".
There are numerous ways to implement this algorithm. Here are four ways, each of varying complexity and style.