Computer Science, asked by pallavisrinivas2004, 4 months ago

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 vishishtha1504
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