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 probability of spinning a B?
X-intercept (__,__) Y-intercept (__,__)
If 4/5 x blank = 2/5, what is blank
Jim Juice treats that are in the shape of a cone. The molds he bought are each 3 inches (in.) deep with a diameter of 3 in. What is the approximate volume of ju
Calculate the silver ion concentration in a saturated solution of silver(i) sulfate (ksp = 1.4 × 10–5).
I need help please ..
What was the Equal-Pay Act and why was it passed?
Whose famous conjecture is paraphrased as "space, time, and matter"?
Which conflicts does the narrator face in this passage?
What is the historical influence on Louisiana law check all that supply