def MultiplicationResult():
    
    while True:
        a = float(input("Введите 1-й множитель: "))
        b = float(input("Введите 2-й множитель: "))
        result = a * b
        if a != 0.0 and b != 0.0:
            break
        return result
    
print(MultiplicationResult())