Ответ:
a, b = map(int, input('Введите a b:').split())
p=1
for x in range (a,b,2):
if (2*x-4)!=0 and x!=0:
y=(2+8*x)/x - (7-14*x)/(2*x-4)
print('x=', x,' y=', y)
p= p*y
else:
print('x=',x, ' y= Error')
print('p=', p)
Copyright © 2024 SCHOLAR.TIPS - All rights reserved.
Answers & Comments
Ответ:
a, b = map(int, input('Введите a b:').split())
p=1
for x in range (a,b,2):
if (2*x-4)!=0 and x!=0:
y=(2+8*x)/x - (7-14*x)/(2*x-4)
print('x=', x,' y=', y)
p= p*y
else:
print('x=',x, ' y= Error')
print('p=', p)