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

Drag the tiles to the correct boxes to complete the pairs. match the inventor with his invention.a) eli whitney b) henry bessemerc) thomas edisond) james watt e
The following list gives the number of public libraries in each of 12 cities. 11,7,9,7,7,11,8,8,9,8,9,10. Find mode of this data set
Which statement is correct? A. The opposite of the opposite of 2 is 2. B. The opposite of the opposite of 3 is . C. The opposite of the opposite of 1 is −
lizzie is measuring two lines. the first line is 30 centimeters long. the second line is 500 millimeters long. what is the total length is centimeter
Which of the following is solid, liquid or gas that transports sound
Can you help me solve this in explanation
why do earthworms usually die due upon to the exposure of salt?
Question 10(Multiple Choice Worth 1 points) (02.05 MC) Triangle ABC is a right triangle. Point D is the midpoint of side AB, and point E is the midpoint of sid
Can I have sex?????????????????????
Who most probably will be the next president of Poland?