Advertisement
darya_leushkina

Задание 15

Nov 19th, 2020
650
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Python 0.10 KB | None | 0 0
  1. e = float(input())
  2. s = 0
  3. f = 2
  4. while abs(round(1 / f, 33)) > e:
  5.     s += 1 / f
  6.     f *= 2
  7. print(s)
  8.  
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement