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

a water sprinkler rotates one-degrer turn at each interval. if the sprinkler rotates a total 110, how many one turns has the sprinkler made?​
In the adjourning phase of small group development, the members of the group have met their goals and completed their tasks and, thus, no longer need to continu
Quadrilateral ABCD is the figure below represents a scaled-down model of a walkway around a historic site. quadrilateral EFGH represents the actual walkway. ABC
What is x ? And how do I solve for it ?
A valid website has all of the following except A. A responsible URL address B. Balanced information C. Hidden sponsorship of the site
how do local laws reflect moral views and standards
Matthew throws a ball straight up into the air. It rises for a period of time and then begins to drop. At which points in the ball's journey will gravity be the
which narrative element would most effectively increase the reader’s understanding of the tranquility Yasmin describes?
Given the table below, determine if the data represents a linear or an exponential function and find a possible formula for the function. x 0 1 2 3 4 f (x) 18 1
Eli bought a jacket that was on sale at 40 percent off. The original price of the jacket was $60.00. How much did Eli pay?