Skip to content

Latest commit

 

History

History

01-fizz-buzz

Folders and files

NameName
Last commit message
Last commit date

parent directory

..
 
 
 
 
 
 

FizzBuzz

Write a program that prints one line for each number from 1 to 100

Criteria

  • For multiples of three (3) print Fizz instead of the number
  • For the multiples of five (5) print Buzz instead of the number
  • For numbers which are multiples of both three (3) and five (5) print FizzBuzz instead of the number

Example

1 => 1
2 => 2
3 => Fizz
4 => 4
5 => Buzz
...
15 => FizzBuzz