diff --git a/fizzbuzz.py b/fizzbuzz.py new file mode 100644 index 0000000..3727cf5 --- /dev/null +++ b/fizzbuzz.py @@ -0,0 +1,10 @@ +x, y, n = map(int, input().split()) +for i in range(1, n + 1): + if i % x == 0 and i % y == 0: + print("FizzBuzz") + elif i % x == 0: + print("Fizz") + elif i % y == 0: + print("Buzz") + else: + print(i)