From 76bfbcdf6334506df01b104edcc4717be57f7221 Mon Sep 17 00:00:00 2001 From: Redsoxin7 Date: Wed, 30 Oct 2024 23:10:28 -0400 Subject: [PATCH] First commit for FizzBuzz assignment --- fizzbuzz.py | 12 +++++++++++- 1 file changed, 11 insertions(+), 1 deletion(-) diff --git a/fizzbuzz.py b/fizzbuzz.py index 218f7aa..e3eb986 100644 --- a/fizzbuzz.py +++ b/fizzbuzz.py @@ -1,2 +1,12 @@ # add your code here - +numb = 0 +while numb <= 99: + numb = numb + 1 + if numb % 3 == 0 and numb % 5 == 0: + print("FizzBuzz") + elif numb % 3 == 0: + print("Fizz") + elif numb % 5 == 0: + print("Buzz") + else: + print(numb)