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

Heterozygous genes will always display a dominant trait.
How would I oreder the numbers least to greatest 4.2,-41/9,-4.6,43/8
ALGEBRA! NEED HELP! ~Write a formula for the total surface area of a cube in terms of its edge length x. Explain your reasoning.
14 1/4 - 10 3/7 Reduce to lowest form.... step by step to see if my answer your answer
Is two thirds the same as four sixths
Mixed economies are combinations of market and command economies and sometimes traditional economies. Which of the following economies are correctly called mixe
Which statement describes a reason the United States entered World War I on the Allied side? A.Germany's invasion of Canada posed a direct threat to the United
Three sides of a regular polygon with 8 sides are chosen at random. Find the probability that, when these sides are extended, they form a triangle containing th
5x+7y=77 5x+3y=53 2x+5y=-1 X+2y=0 3x+6y=6 2x-3y=4
Which statement best describes the Odyssey? A. The Odyssey was the earliest submarine used by the ancient Greeks to explore the many surrounding seas. B. The Od