Files
kattis/mixedfractions.py
2023-07-18 22:40:18 +02:00

6 lines
133 B
Python

n, d = map(int, input().split())
while not (n == d == 0):
print(f"{n // d} {n % d} / {d}")
n, d = map(int, input().split())