Python:
x = int(input('x='))
if x < 0:
y = -3*x
else:
y = x + 5
print('y=' + str(y))
Copyright © 2024 SCHOLAR.TIPS - All rights reserved.
Answers & Comments
Python:
x = int(input('x='))
if x < 0:
y = -3*x
else:
y = x + 5
print('y=' + str(y))