x = int(input("Введите икс: "))
y = 0
if x > 0:
y = x - 12
elif x == 0:
y = 5
else:
y = x * x
print("Игрек равен", y)
Preview:
downloadDownload PNG
downloadDownload JPEG
downloadDownload SVG
Tip: You can change the style, width & colours of the snippet with the inspect tool before clicking Download!
Click to optimize width for Twitter