Question: Write code that iterates through number 1 - 20 and prints Fizz if its a multiple of 3, Buzz if its a multiple of 5,
Write code that iterates through number 1 - 20 and prints Fizz if its a multiple of 3, Buzz if its a multiple of 5, FizzBuzz if its a multiple of 3 and 5, and the number if its not a multiple of 3 or 5. It should only print one statement per number. (In python)

Question Discussion Write code that iterates through number 1 - 20 and prints "Fizz" if it's a multiple of 3, Buzz" if it's a multiple of 5, "FizzBuzz" if it's a multiple of 3 and 5, and the number if it's not a multiple of 3 or 5. It should only print one statement per number. Save & Run Load History 1 3
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
