boris-vlasenko

1

Sep 25th, 2015
99
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Python 0.09 KB | None | 0 0
  1. n = int(input())
  2. s = 0
  3. for i in range(1,n+1):
  4.     s += 1/i
  5. print("%10.4f" % round(s,4))
Advertisement
Add Comment
Please, Sign In to add comment