From cb7c7115631a2cf8a103da2d1d0e39a7df924465 Mon Sep 17 00:00:00 2001 From: jellis332 Date: Sun, 3 Nov 2024 19:31:28 -0500 Subject: [PATCH] Updated fizzbuzz.py --- fizzbuzz.py | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/fizzbuzz.py b/fizzbuzz.py index 218f7aa..9409698 100644 --- a/fizzbuzz.py +++ b/fizzbuzz.py @@ -1,2 +1,10 @@ -# add your code here +for num in range(1, 101): + if num % 3 == 0 and num % 5 == 0: + print("FizzBuzz") + elif num % 3 == 0: + print("Fizz") + elif num % 5 == 0: + print("Buzz") + else: + print(num)# add your code here