Skip to content

FizzBuzz

Overview

This program plays the game "Fizzbuzz". The program will count from 1 to 100, replacing each multiple of 3 with the word "fizz", each multiple of 5 with the word “buzz", and each multiple of both with the word “fizzbuzz".

1
2
fizz
4
buzz
...
14
fizzbuzz
16
17
...

User Story #1

The program prints the numbers 1-100 to the console.

User Story #2

If a number is divisible by 3 replace the numeric console output with the word “fizz”.

User Story #3

If a number is divisible by 5 replace the numeric console output with the word “buzz”.

User Story #4

If a number is divisible by both 3 and 5 replace the numeric console output with "fizzbuzz".


Up