Ответ:
x = int(input("X: : "))
y = int(input("Y: "))
if x < 0 and y < 0:
x = abs(x)
y = abs(y)
elif x < 0 or y < 0:
x *= 5
y *= 5
else:
result = x + y
print("The sum of x and y is: ", result)
Copyright © 2024 SCHOLAR.TIPS - All rights reserved.
Answers & Comments
Ответ:
x = int(input("X: : "))
y = int(input("Y: "))
if x < 0 and y < 0:
x = abs(x)
y = abs(y)
elif x < 0 or y < 0:
x *= 5
y *= 5
else:
result = x + y
print("The sum of x and y is: ", result)