Python program to find sum of series 1+(1/2)+(1/3)+..1/n
Answers
Answered by
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
Computer Science,
5 months ago
Political Science,
5 months ago
Math,
11 months ago
Math,
1 year ago
Chemistry,
1 year ago
Chemistry,
1 year ago