diff --git a/fizzbuzz.py b/fizzbuzz.py index 218f7aa..ceb8318 100644 --- a/fizzbuzz.py +++ b/fizzbuzz.py @@ -1,2 +1,10 @@ # add your code here - +for n in range(1, 5001): + if n % 3 == 0 and n % 5 == 0: + print("FizzBuzz") + elif n % 3 == 0: + print("Fizz") + elif n % 5 == 0: + print("Buzz") + else: + print(n)