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