Python dasturlash tilida masalani ishlanishini kuramiz
Code:
m = int(input('m='))
x = float(input('x='))
S = 0
for i in range(1, m + 1):
term = (i + 3 * x**(i + 1)) / (i**2 + i + 1)
S += term
print(f'S = {S}')
print('Suyunov Jahongir')
x=0.21
m=4
Python dasturlash tilida masalani ishlanishini kuramiz
Code:
m = int(input('m='))
x = float(input('x='))
P = 1
for n in range(1, m + 1):
term = (1 + x**(2*n - 1)) / (n**3 + 3*n + 1)
P *= term
print(f'P = {P}')
print('Suyunov Jahongir')