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 is differentiate between provincial government and federal government​
5% commission in sales. Receives a base salary of $375. What would the amount of sales be for the week to make at least $600?
Which of the following best describes the authors' points of view in the passages?
if I have a 100 gallon water tank and use 5 gallons per minute while feeding it 2.5 gallons per minute will that tank run out of water
16+2b-7b subtracting like terms
In a question related to approval of President George W. Bush's plan to save social security, the interviewer asks, "Don't you agree that something must be done
According to Wilson, how will people who love America react to the war in Europe?
5. Using the terms: metal and nonmetal, describe what types of atoms make up each type of bond.
Which region of the country has the greatest concentration of railroad lines?
Clouds begin to form in the atmosphere when __________ causes ___________ of water on Earth. A) the sun; evaporation B) altitude; condensation C) a temperatu