write a python program to print sum of series
Answers
Answered by
2
Answer:
Python Program to Find the Sum of the Series: 1 + x^2/2 + x^3/3 + … x^n/n
Take in the number of terms to find the sum of the series for.
Initialize the sum variable to 0.
Use a for loop ranging from 1 to the number and find the sum of the series.
Print the sum of the series after rounding it off to two decimal places
Answered by
7
Answer:
n= is",round(sum1,2))
Program Explanation
Similar questions