본문 바로가기
Beakjoon&프로그래머스/파이썬

[백준/파이썬]9950번 Rectangles

by 현장 2021. 4. 9.

-코드

while 1:
    l, w, a = map(int, input().split())

    if l == w == a == 0:
        break

    if l == 0:
        print(a // w, w, a)

    elif w == 0:
        print(l, a // l, a)

    else:
        print(l, w, l * w)