Python3:
import math
a = float(input('Введите a: '))
x = float((input('Введите x: ')))
if x > 0:
y = math.sqrt(x) + a
elif x <= 0:
y = math.sqrt(1-x) - a
print('y =', y)
Copyright © 2025 SCHOLAR.TIPS - All rights reserved.
Answers & Comments
Verified answer
Python3:
import math
a = float(input('Введите a: '))
x = float((input('Введите x: ')))
if x > 0:
y = math.sqrt(x) + a
elif x <= 0:
y = math.sqrt(1-x) - a
print('y =', y)