Search

41. 백준_Python [5086] 배수와 약수

while True: A,B = map(int,input().split()) if A == 0 and B == 0: break if A % B == 0: print("multiple") elif B % A ==0: print("factor") else: print("neither")
Python
복사