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

two trains leave the station at the same time, one heading east and the other west. the eastbound trains travels at 110 miles per hour. the westbound train trav
public schools are free schools supported by_________?
I need to find the easiest way to learn how to divide fractions and mixed fractions. I also don't get how to simplify.
Terra data cycle experiment the beginning temperature for saltwater solution was -2°C by the end of the experiment a solution temperature was 24°C what was the
What position would be the highest in a company's hierarchy? A: director of finance B: finance manager C: accountant D: finance administrative assistant
Which subatomic particle has no charge?A.) ElectronB.) NeutronC.) ProtonD.) Ion
The above painting is Michelangelo Buonarroti's, Last Judgement. What is/was the source of inspiration for this famous painting? What does the painting depict?
Can you draw a free body diagram of this for me?
A saltwater aquarium can be used to model the ocean. What is one limitationof this model of the ocean?A. Freshwater fish cannot live in the aquariumB. The model
how do yu slove thee equation 3/4 =x -3/4