Skip to content

An easy exercise of "if-else" using TDD approach

Notifications You must be signed in to change notification settings

martingega/FizzBuzz

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

8 Commits
 
 
 
 
 
 
 
 

Repository files navigation

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

About

An easy exercise of "if-else" using TDD approach

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages