From 8d8f3c88bd4004b90fe72e4f6d9e26cfb8e259da Mon Sep 17 00:00:00 2001 From: Felice Tempo Date: Tue, 29 Oct 2024 13:19:28 -0400 Subject: [PATCH] added code to file program --- fizzbuzz.py | 11 +++++++++-- 1 file changed, 9 insertions(+), 2 deletions(-) diff --git a/fizzbuzz.py b/fizzbuzz.py index 218f7aa..9dd06f0 100644 --- a/fizzbuzz.py +++ b/fizzbuzz.py @@ -1,2 +1,9 @@ -# 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) \ No newline at end of file