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 equation in standard form has a graph with a slope of -3/4 and a y-intercept of 1?
Suppose that we can improve the floating-point instruction performance of a machine by a factor of 10 (i.e. , the same floating-point instructions run 10 times
j'aime rendre la vie des gens difficile si vous n'aimez pas cette questionBRÛLER !!!!en tous cas ...J'espère que tu as passé une bonne journéeUwUVOULEZ-VOUS VOI
What does the picture of George Washington signify in "Rip Van Winkle?" Question 8 options: That a local artist painted it. The British are going to invade Amer
Does voting matter and why?
what is an eqution for a slope of 2 and a y intercept of 5
If f(5) = 3.7 and f(6) = 8.7... f(7) = f(8) = Recursive Function Is
Which biome has the highest average temperature?
what is ─7 ─ 4b = ─5b sovled for the variable
when was nepal declared as federal demotratic republican state​