Advertisement
UF6

Untitled

UF6
Mar 2nd, 2016
245
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Python 0.11 KB | None | 0 0
  1. n=10
  2. sum =0.0
  3. for i in range(1,n):
  4.    
  5.     sum = sum + 1.0/i
  6.    
  7. print(sum)
  8.  
  9. #Test code for problem 3
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement