number1 = int(input("Введите первое число: "))number2 = int(input("Введите второе число: "))
result = 0
if number1 < 0 and number2 < 0:number1 = abs(number1)number2 = abs(number2)elif number2 < 0:number1, number2 = number2, number1
while number2 < 0:result += number1number2 += 1
print(f"Произведение чисел: {result}")
number1 = int(input("Введите первое число: "))
number2 = int(input("Введите второе число: "))
result = 0
if number1 < 0 and number2 < 0:
number1 = abs(number1)
number2 = abs(number2)
elif number2 < 0:
number1, number2 = number2, number1
while number2 < 0:
result += number1
number2 += 1
print(f"Произведение чисел: {result}")