darya_leushkina

Задание 13

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