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 shape is number : 3, 4, and 7
5 miles=8km how many miles in 80km
how can changing improper fractions to mixed numbers help me determine between which two whole numbers a fraction lies
According to English tradition - what happens to the first man that a woman sees on Valentine's Day?
PLEASE HELP I GIVE THANKS
Earth's population continues to grow daily. Which of the following statements best illustrates a possible consequence of such rapid growth?
I was the MVP of Super Bowl XLI. I attended the University of Tennessee and play the position of quarterback. Who am I?
What is 12% of 17.5?
How many times larger is 220 than 22
In what way did the delegates to the 1787 Convention represent a new generation of American leaders