← Back

Code Challenge 2.4 - Fizz Buzz


Objective

Your task is to write a program that prints numbers from 1 to 100. However, for multiples of three, print “Fizz” instead of the number, and for multiples of five, print “Buzz.” For numbers which are multiples of both three and five, print “FizzBuzz.”

Skills to Practice

Challenge Tasks

Sample Output

1
2
Fizz
4
Buzz
Fizz
7
8
Fizz
Buzz
11
Fizz
13
14
FizzBuzz
... Remaining output omitted