Ответ:
1.
a, b = map(int, input().split())
if a < b:
print(a + b)
else:
print(a - b)
2.
x = float(input())
if x > 5:
print(x ** 2 - 1)
elif x <= -2:
print(2 * x)
3.
g, s = map(float, input().split())
if s + g > 0:
print(100*s*g)
print((s + g) / 2)
Copyright © 2024 SCHOLAR.TIPS - All rights reserved.
Answers & Comments
Ответ:
1.
a, b = map(int, input().split())
if a < b:
print(a + b)
else:
print(a - b)
2.
x = float(input())
if x > 5:
print(x ** 2 - 1)
elif x <= -2:
print(2 * x)
3.
g, s = map(float, input().split())
if s + g > 0:
print(100*s*g)
else:
print((s + g) / 2)