📅  最后修改于: 2022-03-11 14:45:38.703000             🧑  作者: Mango
n=int(input("Enter the number of terms: "))
sum1=0
for i in range(1,n+1):
sum1=sum1+(1/i)
print("The sum of series is",round(sum1,2))