Answers for "Write a program that prints the numbers from 1 to 100, but for multiples of 3 print “Fizz” instead of the number and for multiples of 5 print “Buzz”. For numbers that are multiples of both three and five print “FizzBuzz”."

2

how to make fizzbuzz in python

for x in range(100):
  output = ""
  if x % 3 == 0:
    output += "Fizz"
  if x % 5 == 0:
    output += "Buzz"
  print(output)
Posted by: Guest on January-05-2020

Code answers related to "Write a program that prints the numbers from 1 to 100, but for multiples of 3 print “Fizz” instead of the number and for multiples of 5 print “Buzz”. For numbers that are multiples of both three and five print “FizzBuzz”."

Python Answers by Framework

Browse Popular Code Answers by Language