From e880ed08551812d73577a4bc079ae46101acb337 Mon Sep 17 00:00:00 2001 From: Kaitlin LaBarbera Date: Fri, 1 Nov 2024 20:42:22 -0400 Subject: [PATCH] Added code to fizbuzz challenge --- fizzbuzz.py | 11 ++++++++++- 1 file changed, 10 insertions(+), 1 deletion(-) diff --git a/fizzbuzz.py b/fizzbuzz.py index 218f7aa..1e1b88f 100644 --- a/fizzbuzz.py +++ b/fizzbuzz.py @@ -1,2 +1,11 @@ -# add your code here +for i in range(1, 101): + if i % 3 == 0 and i % 5 == 0: + print("FizzBuzz") + elif i % 3 == 0: + print("Fizz") + elif i % 5 == 0: + print("Buzz") + else: + print(i) +