From 947a85d6307cfc704a1df6bf006935c94b63f3ec Mon Sep 17 00:00:00 2001 From: Jethro Stapelbroek Date: Tue, 18 Jul 2023 22:40:18 +0200 Subject: [PATCH] Mixed Fractions --- mixedfractions.py | 5 +++++ 1 file changed, 5 insertions(+) create mode 100644 mixedfractions.py diff --git a/mixedfractions.py b/mixedfractions.py new file mode 100644 index 0000000..b76bdb8 --- /dev/null +++ b/mixedfractions.py @@ -0,0 +1,5 @@ +n, d = map(int, input().split()) + +while not (n == d == 0): + print(f"{n // d} {n % d} / {d}") + n, d = map(int, input().split())