num1 = int(input("Enter a number: ")) num2 = int(input("Enter another number: ")) if num1 % num2 == 0: print(num1, "is a multiple of", num2) elif num2 % num1 == 0: print(num1, "is a factor of", num2)