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

You rode your bike 27 miles during the last month. Your total travel time was 3 hours. What was your average speed in miles per hour?
describe the day of June 21 at the North Pole in terms of daylight and darkness ( science )
A sentence that contains both dependent and independent clauses is known as a
How is the cell structure related to its function in your body
The British chieftan, Calgacus, _____. Select the best answer from the choices provided. spoke glowingly about the benefits of the Pax Romana led one of the
The BEST possible way to test the paternity of a child would be to
5 quarts of oil for her car. How many fluid ounces is that
Which inequality's graph will have a dashed boundary line? a x + 7y > 3 b 7x + y ≤ 3 c 6x − 5y ≥ 4 d y − x ≤ 3
Karyotypes can be studied to determine an organism’s chromosomal makeup and to detect genetic defects. Down syndrome is a genetic disorder that is also called t
This aquarium exhibits biotic and abiotic factors in an aquatic environment. One of the abiotic factors is A) coral. B) fish. C) plants. D) water.