728x90
배수와 약수
#B5086
while True:
a, b = map(int, input().split())
if a<b and b%a==0:
print("factor")
elif a>b and a%b==0:
print("multiple")
elif a==0 and b==0:
break
else:
print("neither")
728x90
'Programming Practice > Python' 카테고리의 다른 글
백준 10162 파이썬 전자레인지 (0) | 2023.09.04 |
---|---|
백준 11653 파이썬 소인수분해 (2) | 2023.09.03 |
백준 10214 파이썬 Baseball (0) | 2023.09.03 |
백준 10103 파이썬 주사위 게임 (0) | 2023.09.03 |
백준 10102 파이썬 (0) | 2023.09.03 |