Fizz-Buzz-Test

🎯 Write a program that runs through the numbers from 1 to 100:

  • If the number is divisible by 3, the program outputs “Fizz”.

  • If the number is divisible by 5, the program outputs “Buzz”.

  • If the number is divisible by 3 and 5, the program outputs “FizzBuzz”.

  • otherwise the number is printed

Note

The Fizz Buzz Test has often been used in coding interviews.

Translated with www.DeepL.com