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

how to integrate ∫㏑x/χ from 1 to e
What is the value of 2(3+5)-2x4+1x5
14. Rationalize the denominator and simplify: √5m/√5n
AP Psych Many psychologists are skeptical of claims that chimpanzees can acquire language because the chimps have not shown the ability to... A) use symbols me
Sarah was cutting fabric for a quilt she cut a strip of fabric that was 19 1/8 inches long into 5 equal pieces when she was finished cutting Sarah had a piece t
George is studying Basque, a language spoken by a group of people who live in the Pyrenees mountain range between France and Spain. He’s studying the history of
from 18 to 45 find each percent increase. round to the nearest percent.
what is the y-intercept of the linear equation y=5x+7
13. Simplify: (-5-√3)^2
The Soviet Union was the world's first communist nation. True False