Asked by jamshaid
Write a program to find the sum of the series: 1/12+1/22+1/32+…..1/n2.
Answers
Answered by
Steve
s = 0
for i = 1 to n
s = s + 1/(10*i+2)
next i
adapt to the language of your choice. Beware integer division.
for i = 1 to n
s = s + 1/(10*i+2)
next i
adapt to the language of your choice. Beware integer division.
There are no AI answers yet. The ability to request AI answers is coming soon!
Submit Your Answer
We prioritize human answers over AI answers.
If you are human, and you can answer this question, please submit your answer.