Python3:
x = float(input('Введите x: '))
if x >= 0:
y = x**2 - 2
if x < 0:
y = x + 4
print(('y ='), y)
Copyright © 2024 SCHOLAR.TIPS - All rights reserved.