Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- e = float(input())
- i = 1
- a = float(4)
- s = 0
- while abs(round(a / (2 * i * i + i), 30)) < e:
- s += round(a / (2 * i * i + i), 30)
- a *= -2
- i += 1
- print(s)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement