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

which statement defines the temperature of a sample of matter
The beginning balance in cash was $ 3500 additional cash of $ 2000 was received checks were written totaling $ 2500 the cash balance is :
Can someone help me?
It says read each sentence until you can remember it. then write each sentence. What does that mean?
Sigmund wrote four checks last month, and these were the only transactions for his checking account . Accourding to his register, his balance is 1065.27. If the
Is forensic evidence the most important type of evidence to present at a trial?
What k-1/3=5/6 equal ?
Who knows coding questions? Please help! Thanks.
How do igneous rocks form? A. Compaction and cementation of sediment B. Cooling of molten lava or magma C. Heating and added pressure to existing rock D. Evapor
Ron has 20 apples. He used 2/5 of the apples to make pies. How many apples did Ron use for pies