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

CHECK TWO ANSWERS PLS!!
Choose whether the main verb in the sentence below is active or passive. No innovative communication signals were produced by the chimpanzees
Your neighbor has fertilized her lawn. several weeks later, she is alarmed to see that the surface of her ornamental pond, which sits at the bottom of the slopi
The banner over the finish line of a running race is 400. Centimeters long and 85 centimeters high. What is the area over the banner?
Two angles form a linear pair. the measure of one angle is 26∘26∘ greater than the measure of the other angle. find the measure of each angle.
Ryan runs 9 miles in 73 minutes. How many minutes does he take per mile?
An earthquake registered 7.4 on the Richter scale. If the reference intensity of this quake was 2.0 × 1011, what was its intensity?
If h and k are constants and x^2+kx+7 is equivalent to (x+1)(x+h), what is the value of k?
Starting initially at rest at t=0, a subway car accelerates to 29 m/s over a period of 6 seconds, and then begins to brake. Forty-eight (total) seconds after s
Which describes why other peoples most likely moved into Bantu territory?