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

18. Which number rounds to 0.94 when rounded to the nearesthundredth?
what is 7 over 20 as a percentage
Benito has 42 orange juice boxes and 36 grape juice boxes. If Benito gives each friend an equal number of each type of juice box, what is the greatest number of
Each of us weighs a tiny bit less on the ground floor of a skyscraper than we do on the top floor. One reason for this is that _____. A. the gravitational fie
How would I solve this?
The record high January temperature in Austin, Texas, is 90 degrees F The record low January temperature is -7 degrees F, Find the difference between the high a
find the value of x in the rhombus if
Show that each algebraic fraction simplifies to the given expression. a) 2/x+1 + 5/x+2 = 3 simplifies to 3x² + 2x - 3 = 0 b) 3/4x+1 - 4/x+2 = 2 simplifies to 8
Which statement correctly describes the inflammatory response process? A. blood vessels dilate, swelling occurs, phagocytes ingest foreign bacteria or viruses B
The fossil record is the record of all fossils that have been found on Earth. true or false