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 the measure of angle A'? 45º 63º 72º 98º
What was lost and gained during the Glorious, American, and French Revolution?
The starting salaries of individuals with an MBA degree are normally distributed with a mean of $40,000 and a standard deviation of $5,000.Refer to Exhibit 6-4.
1.5x=10.5 missing number
Which statement best describes how deep-sea producers differ from other producers? A. Deep-sea producers must generate twice as much energy due to larger consum
3. An extremely light rod 1.00 m long has a 2.00-kg mass attached to one end and a 3.00-kg mass attached to the other. The system rotates at a constant angular
multiply and remove all perfect square roots. Assume y is positive. √12
What is the equation of the following graph in vertex form?
I’m struggling with this question
Immanuel Kant believed that the results of a decision are not as important as the reason for making it. This is the principle behind a. Rawlsian justice. b. deo