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

physical geography, also known as
What is the equation of the line of best fit for natalie's data? enter the correct answer in the box by replacing mand b in the equation. round each number to t
Kimmy has 2 bags of candy. one of the bags has 4 2/3 pounds of candy and the other bag has 3 7/9 pounds of candy. she is going to split the candy evenly with 2
What is the moral of the Epic of Gilgamesh What lesson did Gilgamesh learn?
Solve this system by graphing. y = 2x - 7 y = - 3x + 8 (3, -1) (4, 1) (0, 8) (0, -7)
4. Which of the following statements about sentences is true? A. There are only two sentence patterns you can use to ask a question. B. The English language gen
Why are French, Italian, Portuguese, Spanish, and Romanian sometimes referred to as “Romance languages”? A. They are languages that speak of heroism and love.
What do Della and Jim give up for each other and what gifts do they buy for each other?
how do you graph y=x-2?
A tug boat horn emits a frequency of 250 Hz in 18 °C air, which has a speed of sound of 342 m/s. If the tug boat is moving away from a stationary observer at 15