Write a python program to find the sum of 1+ 1/8 + 1/27......1/n3, where n is the number input by the user.
Answers
Answered by
3
Explanation:
Here is source code of the Python Program to find the sum of series: 1 + 1/2 + 1/3 + ….. + 1/N. The program output is also shown below.
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))
Similar questions
Science,
2 months ago
Social Sciences,
2 months ago
English,
2 months ago
Political Science,
4 months ago
Math,
4 months ago
Physics,
10 months ago