This repository has been archived on 2022-05-03. You can view files and clone it, but cannot push or open issues/pull-requests.
PR3Python/python/s1/s1_a4.py

5 lines
96 B
Python

n = int(input("Enter n:"))
s = 0.0
for i in range (1, n + 1):
s = s + 1.0 / (i * i)
print(s)