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

How many months in 3 million years?
what does it mean to have a predisposition for a specific disease or condition?
Suppose that you want to test the effects of different dishwashing detergents on dishes that have food stuck to them. To test the differences, you wash three lo
Solve for all values of q that satisfy the equation √(3q+7) = q+3
The acceleration of gravity on the moon is 1.6 m/s2 and on earth it is 9.80 m/s2 if the weight of a moon rock is 125n what is its weight on earth
what does it mean to have a predisposition for a specific disease or condition?
Alright guys, HELP! Please! 6.2=1/2[tex] \pi [/tex]√L(.0001) Solve for L and tell me how you did it please.
The current estimate of the number of genes in the human genome is: question 9 answers 1000 24,000 100,000 50,000
According to Adam Smith, the government should be responsible for a.encouraging producers to act in their own self-interest. b.imposing tariffs and quotas on an
4. Pick three risky weight-loss strategies from this list: fad diets, liquid diets, laxatives and diuretics, and fasting/starvation diets. Write a paragraph for