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