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

Which of these choices show a pair of equivalent expression? Check all that apply.
A car travels 25 miles every half-hour. How fast is it going?
Keisha bought N packs of pencils. Each pack has 12 pencils. Write an equation to represent the total number of pencils P that Keisha bought.
The irregularly shaped area between the lungs tha contain the trachea is called the
The Spanish were unable to over power the Aztecs and the Incas with their superior weaponry
The south threatened to ______ from the union if their political interests were not met. ... Western territories had not yet joined the union.
What 1819 event made many Americans want to elect officials who better protected their interests?
What was a key argument used by the federalists for ratification of the U.S constitution?
To meet the federal guidelines, a wheelchair ramp that is constructed to rise 1 foot off the ground must extend 12 feet along the ground. How long will the
Matthew believes that law enforcement officers protect the interests and power of the dominant class at the expense of subjects. matthew's beliefs are consisten