maxito2873 maxito2873
  • 02-10-2017
  • Mathematics
contestada

Write a while loop that sums up the squares of the integers from 1 through 10.

Respuesta :

mathmate
mathmate mathmate
  • 02-10-2017
count=0;
sum=0;
while (count<10) {
  count++;
  sum+=count;
}
// result of summation is stored in variable sum
Answer Link

Otras preguntas

If you could change history,what would you have done to prevent another world war that might have been more successful than a treaty like the Kellogg -Briand pa
How does banking affect the money supply?
The main reason that it's important to test only one variable at a time is so that
Q: If 3x-6<12, then x could be? Answer choices: A:5 B:7 C:9 D:12
Okay, I am stumped on a 4th grade math problem. Help! Taylor's home street address number has five digits. Two digits have values of 60,0000 and 300. The last d
Which one of the following statements is accurate?     A. Electron microscopes focus beams of light using magnetic fields.B. False colors are added to images to
The patient is awake many times during brain surgery. in an operation to remove a brain tumor, dr. judson accidentally poked a certain area of the cerebrum, whe
what is the function of simple cuboidal epithelium
which of the following represents the zeros of the function f(x) = 4x3 -13x2 -37x +10
A severe storm has an average peak wave height of 16.4 feet for waves hitting the shore. suppose that a storm is in progress with a severe storm class rating. l