Fizzbuzz

Question Q2.5.3

The game of "Fizzbuzz" involves counting, but replacing numbers divisible by 3 with the word 'Fizz', those divisible by 5 with 'Buzz', and those divisible by both 3 and 5 with 'FizzBuzz'. Write a program to play this game, counting up to 100.


Solution