From c284cd1e81dc06a7ad6f8942e26dde986684971f Mon Sep 17 00:00:00 2001 From: ira-onic Date: Sun, 3 Nov 2024 22:19:33 -0500 Subject: [PATCH] FizzBuzz Program --- fizzbuzz.py | 13 ++++++++++++- 1 file changed, 12 insertions(+), 1 deletion(-) diff --git a/fizzbuzz.py b/fizzbuzz.py index 218f7aa..cb46f31 100644 --- a/fizzbuzz.py +++ b/fizzbuzz.py @@ -1,2 +1,13 @@ -# add your code here +current_value = 1 +while current_value <= 100: + if current_value % 3 ==0 and current_value % 5 == 0: + print ("FizzBuzz") + elif current_value % 3 == 0: + print ("Fizz") + elif current_value % 5 == 0: + print ("Buzz") + else: + print (current_value) + + current_value += 1