From 8f57aca064405070da97d24f13966b829fbee01b Mon Sep 17 00:00:00 2001 From: Jethro Stapelbroek Date: Sat, 24 Jun 2023 21:55:50 +0200 Subject: [PATCH] FizzBuzz --- fizzbuzz.py | 10 ++++++++++ 1 file changed, 10 insertions(+) create mode 100644 fizzbuzz.py 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)