백준 - 5086 (python) 간단한 조건문 문제 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") 백준/약수, 배수와 소수 2024.02.21