To most developers, FizzBuzz is nothing more than a trivial formality often utilized within interviews to quickly identify those that have basic programming knowledge from those that do not.
- write a command that does the following:
- print each number starting from
1
through to100
on a new line - if the number is a multiple of
3
, print the stringFizz
instead of the number - if the number is a multiple of
5
, print the stringBuzz
instead of the number - if the number is a multiple of both
3
and5
, print the stringFizzBuzz
instead of the number
- print each number starting from
Click here to view and discuss this automation challenge.