top of page

FIZZ BUZZ

Requirements:

1. Given a number between 1 and 1000, return the string of that number (1 = "1", 1000 = "1000").

2. If a number is divisible by 3 return "FIZZ".

3. If a number is divisible by 5 return "BUZZ".

4.  If a number is divisible by 3 and 5 return "FIZZBUZZ".

bottom of page