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

We wish to estimate what percent of adult residents in a certain county are parents. Out of 100 adult residents sampled, 8 had kids. Based on this, construct a
Amanda is practing her dives off the diving board. When she dives into the water the path her body makes and where she resurfaces can be modeled by the equation
which sample was an alkane​
In the diagram below of right triangle ACB, altitude CD is drawn to hypotenuse AB. If AB = 45 and AC = 15, what is the length of AD? 1) 3 2) 5 3) 7 4) 9
These 20 discs are in a bag. 11 11 11 11 22 22 22 22 22 22 33 33 33 33 33 33 33 44 44 44 Two of the discs are taken at random from the bag. Work out the probabi
Can someone please tell me the steps and how to solve it?
2/9 of the students are sixth graders. How many sixth graders are there if the school has 90 total students
What is the slope of the line?
You are driving on a two-lane highway with traffic moving in both directions. The road is slippery, and a vehicle in front of you starts to skid sideways. They
Why did our founding fathers not eliminate slavery when writing the Constitution?