날이 좋고 덥네요.
문제 번호: 5086
사용한 프로그래밍 언어: Python
간단한 설명: 두 수를 입력받고, 나머지를 구해주는 연산자를 사용해서 약수라면 factor를, 배수라면 multiple을, 둘 다 아니라면 neither를 출력했다.
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")