Cal harmonic series

mail@pastecode.io avatar
unknown
plain_text
a year ago
77 B
1
Indexable
Never
n=int(input("n="))
sum=0
for i in range(1,n+1):
    sum += 1/i
print(sum)