Advertisement
T-D-K

Untitled

Jun 29th, 2018
269
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Python 0.08 KB | None | 0 0
  1. n = int(input())
  2. r = 0
  3. for i in range(1, n + 1):
  4.     r += (i - 1) / i
  5. print(r)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement