Skip to content

Latest commit

 

History

History
16 lines (11 loc) · 533 Bytes

File metadata and controls

16 lines (11 loc) · 533 Bytes

##Fizz Buzz

This is just one step above 'Hello World'.

Implement a program that counts to 100 following these rules:

  • If (n % 3 == 0) print 'fizz'.
  • If (n % 5 == 0) print 'buzz'.
  • When both of the above are true, both 'fizz' and 'buzz' are printed.
  • If neither of the previous were true, print the number.

More context on Fizz Buzz.

Solution: Fizz Buzz