Ответ:
y=int(input('Введите y '))
c=-20.5
x=10
a=0
if y<0:
a=(y+16*c*x)/(c*x)
elif 0<=y<5:
a=c*x
elif y>=5:
a=(y-c*x)/(c+1)
print(f'a = {round(a,2)}')
c = float(-20.5)
x = int(10)
y = int(input('Введите y: '))
if y < 0:
a = round(((y + 16 * c * x) / (c * x)), 3)
elif (y >= 0) and (y < 5):
a = c * x
else:
a = round((y - c * x) / (c + 1), 3)
print(str(a))
Copyright © 2024 SCHOLAR.TIPS - All rights reserved.
Answers & Comments
Ответ:
y=int(input('Введите y '))
c=-20.5
x=10
a=0
if y<0:
a=(y+16*c*x)/(c*x)
elif 0<=y<5:
a=c*x
elif y>=5:
a=(y-c*x)/(c+1)
print(f'a = {round(a,2)}')
c = float(-20.5)
x = int(10)
y = int(input('Введите y: '))
if y < 0:
a = round(((y + 16 * c * x) / (c * x)), 3)
elif (y >= 0) and (y < 5):
a = c * x
else:
a = round((y - c * x) / (c + 1), 3)
print(str(a))