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 is the volume of this rectangular prism? Il inches 6 inches 32 inches
Application Question: In Lancaster county, Pennsylvania, it is common for members of the Amish community to use wind mills to pump water from underground to fil
Help, I'm confused so much. Front end estimation if the number is 592. if you round 590 or 500 from 300 + 500 = 800, what should 500 be?
What were some of the reasons for the revolutionary war?.
Need help?!?!!?!?!?!?!
When Jean was asked to say what the 3 in the fraction 2 3 means, Jean said that the 3 is the whole. Explain why it is not completely correct to say that “3 is t
Which one of the following statements is not a correct statement of the law of conservation of mass?.
What is the approximate mean of the following numbers? 10, 39, 71, 39, 76, 38, 25
3,14 x (200 - 175)2 - 150 Round your answer off to the nearest whole .​
How much did you pay if an item with an original price of $43.43 has a 20% discount?