How Write a program to run the series.
1/2^2+1/3^2+1/4^2+.....+1/n^2?
Answers
Answered by
0
Answer:
A python code for this goes like:
Answered by
0
n = int(input("enter n: "))
series = [1 / (x ** 2) for x in range(2, n + 1)]
print(f"{sum(series):.2f}")
Similar questions