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

Which of the following is a claim about ancient Rome that a historian could build an argument around?
Find the area of the shaded sector. Enter your answer as a number, rounded to the nearest tenth (no units). shaded value 243 degrees radius 12. 5
Which document created the government the Puritans would follow? A. The Magna Carta B. The Virginia Company Charters C. The Mayflower Compact D. Th
A person with _____ personality disorder is also referred to as a psychopath.
how have increased carbon dioxide levels and temperatures affected living organisms
What type of injury would most likely result from a sudden blow to the body?
Sensory and motor functions in the mature human adult are controlled by the
PLEASE HELP 25 POINTS PLEASE ANSWER BOTH
Imagine that you were in the same situation as Harrison Bergeron would you have acted the way he did or would you have done something different? Why?
Which statement best describes what the bill of right does for citizens