July 2022 1 5 Report
Помогите, пожалуйста, с задачей!
Питон
Никак на 100 не заходит, только 67.20
Вот мой код:

x = float(input())
m = 2
n = 2
sum1 = 1
sum2 = 1
if x > 1 and x <= 13:
while(sum1 < x):
sum1 += 1/n
n+=1
n = n -2
print(n)
while(sum2 <= x):
sum2 += 1/m
m+=1
m = m -1
print(m)
Please enter comments
Please enter your name.
Please enter the correct email address.
You must agree before submitting.

Answers & Comments


Copyright © 2024 SCHOLAR.TIPS - All rights reserved.