-
Data Structures
-
Iteration
-
Functions
-
Mathematics
-
Examples
-
Exercises
FizzBuzz
Write a program that counts up to a limit, such as 32.
However, if the number is divisable by 3 it should print fizz instead of the number.
And, if the number is divisable by 5 it should print buzz instead of the number.
Also, if the number is divisable by 3 and 5, it should print fizzbuzz instead of anything else.
i.e.
1
2
fizz
4
buzz
...
13
14
fizzbuzz
16
17