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

Clark made five of his truck payments late and was fined five late fees. The total change to his savings from late fees was -$60. How much was one late fee? $5
3. Why was Jean Toomer's Cane such a revolutionary novel? O It told a story that moved backward in time. O It featured an unusual mix of poetry and prose. O It
Write 6.14 x 10^-5 in Standard Form Please help :)
Which answer choice is punctuated correctly? We’ll need: a hose, a rake preferably with good teeth. A basket and a wheelbarrow. We’ll need a hose, a rake, prefe
Would the deer on the island be better off worse off or about the same without the wolves
all the body measurements taken for boys​
Approximate by finding the product of (2x10^58)x(2x10^-23)
Some private schools request greater financial detail by asking you to fill out a
when a complex sentence begins with an independent clause, punctuation after the clause is? A) Required B) Not required
Which of the following statements is TRUE about auto insurance premiums? Group of answer choices If you have an auto insurance policy and don't get into a car a