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 arrangement of electrons would result in a nonpolar molecule?
A building casts a 50-foot shadow. Alex is 5 feet tall and casts a 6-foot shadow. Approximately how tall is the building? a. 60 ft b. 24 ft c. 50 ft d. 42 f
who first applied science to dental treatment
What is a society ruled by religous leaders called?
express 410, 000 in scientific notation
In what way did ancient Athens influence the framers of the United States Constitution?
Explain whether you think the british government acted wisely in dealing with the colonies
What is the value of expression? 6^-7*6^4 A. 6^-3 B. 6^-11 C. 6^-28 D. 6^11
what is 70/80 as a decimal
A number is not an integer what type of number can it be