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

Calculate Average Speed A train travels 230 km from City A to City B in 3 hours. Then, the train travels 400 km from City B to City C in 4 hours. Calculate the
Explain how photosynthesis changes the radiant energy from the sun into chemical energy (sugar) through the process of photosynthesis.
NEED ANSWER!!!! WILL MAKE BEST ANSWER BRAINLIEST!!!
Which of these completes the sentence? People interpret information ___________. Choose one.
pls pls help pls i really need this by today pls help me
Evaluate. 1+(-3 - 7)²+[tex] \sqrt{36} [/tex]​
Which form of organization do you think is most effective? Describe the style and explain its strengths.
Two girls and three boys are entered in a school raffle that has two prizes. If a person is not allowed to win both prizes, what is the probability that two gir
The graph represents y = - 4x + 7. Which statements are true about the graph? A) B The coordinate pair (1, 3) represents a point on the graph and a solution to
hey, can someone help??? I don't have much time left.