Skip to content

FizzBuzz breakdown

Giorgio Garofalo edited this page Jan 24, 2023 · 8 revisions

FizzBuzz

This sample prints the first 30 cases of FizzBuzz: for each number in range, the output is:

  • Fizz if it is divisible by 3;
  • Buzz if it is divisible by 5;
  • FizzBuzz if it is divisible by both 3 and 5;
  • the number itself otherwise.

To do.

Clone this wiki locally