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

Escoge la forma correcta del condicional. Mis amigos (ayudar) los padres. A) ayudaría B) ayudarán C) ayudarían D) ayudían
Which speaker is expressing a viewpoint that is most consistent with the principles of laissez-faire economics?
need help again asapp
Which of the following orbitals is the largest in size? A. 2s B. 4s C. 1s D. 3s E. all s orbitals are the same size
what does the word chlorinated mean
How did Native Americans on the plains compare to the Native American West Coast
What is the main function of Cellular respiration (1) using carbon dioxide (2) releasing energy (3) producing oxygen. (4) circulating blood.
Which of Napoleon's campaigns represent the FURTHEST extent of his victories and a major turning point in his military career?
Which statements are accurate in regards to sexual activity? Check all that apply. Peers can heavily influence sexual activity. Dating an older person increase
instead of relying upon a small, stable, well-paid, and will train or Force, the fast food industry seeks out part-time, unskilled workers who are willing to ac