FizzBuzz
Read a whole number n and print the numbers from 1 to n, one per line, but:
- print
FizzBuzzinstead of numbers that divide by both 3 and 5 - print
Fizzinstead of numbers that divide by 3 - print
Buzzinstead of numbers that divide by 5
For the input 5:
1
2
Fizz
4
BuzzWatch the order of your conditions: 15 divides by 3, by 5, and by both.
Results will be shown here
Press Run to start your program.