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

Who was the first african american male tennis player to achieve a world ranking
RectangleABCD has vertices A(1, 1) , B(1, 7) , C(3, 7) , and D(3, 1) . A dilation with a scale factor of 0.4 and centered at the origin is applied to the rectan
What is the simplified form of each expression? 1). A) 1 B) 0 C) -5.1 D)-1 2). 3g^-2 b^2 A) 3b^2/b^2 B) 3g^2 b^-2 C) 3gb^-4 D) b^2/3g^2 3). 3/g^-2 h^3 A) 3/g^
Which of the following is likely to have been painted in a still life by diego velazquez? A) grapes and cheese b) peasants having lunch c) a battle d) cupid and
Stem-changing (boot) verbs do NOT have stem changes in the __________ forms. Question 8 options: Ustedes & ellos Nosotros & vosotros Yo & tú Él &
How can the creation of ice result in physical weathering??
find f (-11), g (0), and h(28).
__________ provide the body with 9 calories a gram and provide energy as well as insulating the body.
please can sombody answer this i give lots of points i u answer these :(
What is transportation?