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

The weight of an object on the moon is 1/6 of its weight on Earth. If a moon rock weighs 20 1/2 lb on Earth, how much did the rock weigh on the moon?
What are two main roles served my congress
Find the original price of a pair of shoes if the sale price is $40 after a %20% discount.
Identify the complete subject and the complete predicate in the following sentence. The workmen repaired the damaged building.
Th total capacity of 6 pitchers and 12 glasses is 21 liters. The capacity of a pitcher is 5 times that of a glass. Find the capacity of each glass. Give you ans
What's greater 1/4 or 4/4
during which process is mrna converted into a sequence of amino acid for protein production a-transcription b-translation c-translocation d- mRNA synthesis
the best way to find out if a particular business is a good fit for you is to
Which of the following difficulties would nations that are enclaves most likely face?
The location of the water table is subject to change. a. True b. False