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

What does the underlined phrase indicate about the author's feelings toward Frida Kahlo?
Thomas Jefferson borrowed an idea from John Locke that he used in the declaration of independence what did Jefferson call this idea
Interior and exterior angles
For a fixed amount of gas at a constant temperature, the volume of the gas is inversely proportional to its pressure. The function IMAGE relates the volume in c
la democracia fue un sistema político que apareció en la polis de Atenas​
What is the intersection point for this system of equations? x + y = 49 .10x + .25y = 7.45
What is the value of b in the equation -4 = 6 + b?
What would you say to or do about a team member in the following situations: 1. Is always late. 2. Whispers to others or starts side conversations during team m
Your landscaping company will be submitting a bid to create the local library's planter garden. You are responsible for completing the design plan. Lulu the lib
The titanic is located nearly 3800 m below the surface of the ocean. How much time would it take for the sound waves to travel to the titanic and back to the su