diff --git a/fizzbuzz.py b/fizzbuzz.py index 218f7aa..b5f5905 100644 --- a/fizzbuzz.py +++ b/fizzbuzz.py @@ -1,2 +1,10 @@ -# add your code here - +# Print numbers 1-100 with "FizzBuzz" for multiples of 3 and 5, "Fizz" for multiples of 3, and "Buzz" for multiples of 5 +for number in range(1, 101): + if number % 3 == 0 and number % 5 == 0: + print("FizzBuzz") + elif number % 3 == 0: + print("Fizz") + elif number % 5 == 0: + print("Buzz") + else: + print(number)