Skip to content

Latest commit

 

History

History
39 lines (21 loc) · 503 Bytes

File metadata and controls

39 lines (21 loc) · 503 Bytes

FIZZ BUZZ PROGRAM

  • STUDENT: GEGA Martin

Fizz Buzz Problem

Write a program that prints the numbers from 1 to 100. But for the multiples of 3 prints "Fizz" instead of the number and for the multiples of 5 prints "Buzz". For numbers which are multiples of both 3 and 5 print "Fizzbuzz".

Follow the TDD process (Commit only the GREEN tests, not the RED ones).

Example

1 == 1

2 == 2

3 == Fizz

4 == 4

5 == Buzz

6 == Fizz

7 == 7

8 == 8

9 == Fizz

...

15 = FizzBuzz

...

100 == Buzz