Computer Science, asked by koolakash3856, 9 months ago

Python program to find sum of series 1+(1/2)+(1/3)+..1/n

Answers

Answered by Anonymous
0

Answer:

# PYTHON PROGRAM TO FIND THE SUM OF THE SERIES(1+1/2+1/3+......+1/n)

n=int(input("enter the limit"))

sum=1

for i in range (1,n+1):

   sum=sum+(1/i)

print(sum)

#hope it helps you

Similar questions