Ask a New Question

Question

Write a program to find the sum of the series: 1/12+1/22+1/32+…..1/n2.
11 years ago

Answers

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.
11 years ago

Related Questions

How do you write a program that prints out your course schedule for a week? Here's an example of th... write a program that ask the student to enter an answer to a math problem. The user should enter two... Write a program in C to find a root of a given equation using Secant Method. Perform five iterations... Write a program that will find the lowest common denominator of two numbers. The user will enter th... How do I write a program with three inputs rectangle heights, width, and number of rectangles Write a C++ program in which you declare variables that will hold an hourly wage, a number of hours... write a program C++ program and Use a recursive function that finds the n-th term using the followin... write a c program to find the percentage marks where obtain marks and total marks is given by user a... Write a program to find whether the student is teenager or not. 3. Write a program to find the largest number in an array?
Ask a New Question
Archives Contact Us Privacy Policy Terms of Use