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

what does como eres tu mean in spanish?
can u tell me how to solve this promblem 4/7 plus 3/7
lara has a tin of peanuts cashews and pecans she will pick a second nut without looking. how many outcomes are there for her two picks?
You shoot an arrow set a target. The parabolic path of the arrow passes through the points shown in table. X. Y 30. 6 60. 7 100. 4 A. Find a quadratic function
List all integers between -0.6 and 4.17 THANK U
Six popular brands of tea are to be used in a blind taste study for consumer recognition. If three distinct brands are chosen from the six, and if the consumer
I just need the equation on how to do it. I'm so lost :'( help please!!!!!!
which of the following expressions does not equal: the sixth root of 81x^4y^8 a. (3xy^2)^2/3 b. (3x)^2/3y^4/3 c. (3x^2y^4)^1/3 d. cube root of 9x^2y^4
Six popular brands of tea are to be used in a blind taste study for consumer recognition. If three distinct brands are chosen from the six, and if the consumer
The Commissariat established by Frederick William in Prussia became A. the overseer of the army. B. an agency of civil government. C. both a military and civil