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

Yellow trapezoid equals to _________?​
Return to questionItem 12Item 12 Part 2 of 2 0.62 points Required information Use the following information for the Exercises below. [The following information
Which environmental factor controls the amount sunlight that reaches underwater plants and animals? controls the amount sunlight that reaches underwater plants
A reason that countries trade with each other is
What was lost and gained during the Glorious, American, and French Revolution?
what is space creation and solar eclipse
what superstition does the narrorators wife belive
Neil is making colorful friendship bracelets for 6 of his friends. He has all of the colors of thread he plans to use except for green. If every bracelet uses 2
Read this line from the text:They aim to kindle interest and to direct the activity of the awakened student along sound lines.In using the phrase sound lines, t
Recupera información del texto: ¿Cuál es la idea principal? b. El texto menciona determinados benefi cios o ventajas: ¿cuáles son estos benefi cios?, ¿qué piens