Mixed Fractions

This commit is contained in:
2023-07-18 22:40:18 +02:00
parent 17d266942c
commit 947a85d630

5
mixedfractions.py Normal file
View File

@@ -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())