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

What is a communicable disease ?
What is the main religion of Latin america
when we look at a leaf, we see the colors of light that are reflected off its surface. how does the relatively low flow of oxygen in green light?
what is the simplest square root of 1345? no decimals please
Simplify (7-5i)(-3+9i)-(5+6i)^2
Newtons third law of motion is also known as the law of ?
The gases in the air attracted to earth by gravity form layers called the ____
Luke made a model that has 1 circular base and 1 curved surface.what solid figure did he make
Rico is making4 batches of mexican rice. each batch needs 2/3cup of corn. He only has a1/3-cup measure.How manytimes must Rico measure 1/3cup of corn to have en
1.    How does the friction affect forward motion? Give an example. 2.    Describe two ways to change the frictional force between two solids surfaces. Change t