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

Every fitness program should include A. at least 60 minutes of cardio activity. B. at least 15 minutes of vigorous activity. C. a warm-up, a prim
Jane addresses twice as many envelopes as Louis in the same amount of time. Together, they address 300 envelopes each day.
What happens to the arrangement of water molecules as ice melts? Molecules release enough energy to move from their fixed positions. Molecules release enough en
Why would life be impossible without enzymes?
the sum of three consecutive integers if the last integer is z.a.) 3z+3b.) 3z+6c.)3z-3d.)3z
something that relates inputs to outputs
In the united states, the most at risk and highest reported rates of infection of gonorrhea are among sexually active ________. a. teenagers b. young adults c.
Explain how two machines can appear identical and yet not have the same actual mechanical advantage
Which of the following is an example of a close-ended question? What did you think of the test yesterday? When is your birthday? Why do you like to exercise by
simplify this algebric expression 8y-2(y+4)