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

The total cost of football tickets varies directly with the number of tickets purchased. Four tickets cost $32. How many tickets can you buy for $56?
what percent of 20 is 11
An omission in a text is correctly punctuated using a _______. A. comma B. dash C. ellipsis D. period
CAN SOMEONE PLEASE CREATE A FOOD WEB WITH ---- three plants, and six animals in your web. There should be at least three levels (producer, primary consumer, and
Which store gives you the best deal? Metromarket 18cans of soda for $9 Wal-Town 10cana of soda for $7.50 ShopStop 14cans of soda for $7.00
Why was the urban revolution essential in the development of civilizations? A. During the urban revolution, people used more land for agricultural purposes, w
The total cost of football tickets varies directly with the number of tickets purchased. Four tickets cost $32. How many tickets can you buy for $56?
Pressure is defined as A. time per area. B. velocity per time. C. force per time. D. force per area. E. distance per time.
Bart ran 5000 meters from the cops and an average speed (velocity) of 6 meters/ second before he got caught. how long did he run?
What is the best term for the topic of a particular piece of writing? A. voice B. conventions C. idea development D. sentence fluency