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

kelsey made 2 pitchers of lemonade each pitcher holds 6 cups she poured 4 cups of lemonade from one pitcher what fraction of the lemonade is left?
The term "precision" BEST refers to which of the following? a. whether or not a measurement is correct b. how "close together" a set of measurements is c. wh
A prescription drug advertisement uses a famous surgeon to tell the audience that this drug saves lives. What propaganda technique is being employed in this adv
wright 6.789 in word form
Kelly has 6 sheets of stickers, with 9 stickers on each sheet. Her aunt gives her 5 more sheets, with 10 stickers on each sheet. How many stickers does Kelly
Organisms with advantageous adaptations are more likely to survive and reproduce than organisms without the advantageous adaptations. This phenomena is known as
Today more and more Americans are seeking medical advice not face-to-face visits with doctors but from a. the Internet c. radio b. television d. the newspap
The master gland is the _____, which secretes hormones that stimulate other glands of the body. hypothalamus pituitary thyroid adrenal
Treatment of an illness can include: a. staying home b. getting lots of rest c. drinking plenty of fluids d. all of these
factor each expression 11x+55