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

A sample of cobalt-60 has an activity of 2000 Bq. What will the activity be after 10 years? Cobalt-60 has a half life of 5 years.
Dr. Digger, a paleontologist, finds a fossil that he describes in his journal. The creature was approximately 1 meter long, with its backbone fused into a large
A scale drawing of a building needs to be made using the scale 1 in = 250 ft. How tall will the building in the scale drawing be if the building is 750 ft tall?
Ull felds of modern Iraq. The green areas are oil fields. The lines are pipelines. The maps show ancient and modern civilizations located in the Tigris-Euphrate
Which statement best summarizes the principle of faunal succession
Is 6 a factor of 35b + 7c? yes no Help?
how does an airplane’s kinetic energy and potential energy change as it takes off and lands? How does this energy change relate to the law of conservation of en
In the figure, j∥k and m∠2 = 117°.What is the m∠3?
Read the claim. Which statement is the strongest counterclaim to the claim? Claim. The suffragette-defaced penny is the most historically significant object bec
How can a chemical reaction be sped up? Select from the drop-down menu to correctly complete the statement. Pack in more of the reactant to increase the A) Cat