Question: Write a program that prints the numbers from 1 to 100. But for multiples of three print Fizz instead of the number and for the
Write a program that prints the numbers from 1 to 100. But for multiples of three print Fizz instead of the number and for the multiples of five print Buzz.
Hints:
- You can use a for loop with a range to simplify the iteration
- Use the modulo division operator (%) to find the remainder of a division calculation
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
