Python
x, y=map(float, input('Введите X и Y: ').split())
s=(x+y)/2
p=2*x*y
if x<y:
x=s
y=p
else:
x=p
y=s
print('x=', x, 'y=',y)
Copyright © 2024 SCHOLAR.TIPS - All rights reserved.
Answers & Comments
Python
x, y=map(float, input('Введите X и Y: ').split())
s=(x+y)/2
p=2*x*y
if x<y:
x=s
y=p
else:
x=p
y=s
print('x=', x, 'y=',y)