
간단한 조건문 문제
while True:
A, B = map(int, input().split())
if A == 0 and B == 0:
break
if B % A == 0:
print("factor")
elif A % B == 0:
print("multiple")
else:
print("neither")
'백준 > 약수, 배수와 소수' 카테고리의 다른 글
백준 - 11653 (python) (0) | 2024.02.29 |
---|---|
백준 - 2581 (python) (0) | 2024.02.27 |
백준 - 1978 (python) (0) | 2024.02.26 |
백준 - 9506 (python) (0) | 2024.02.22 |
백준 - 2501 (python) (0) | 2024.02.22 |