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

how will the addition of water affect the acidity of a highly acidic solution having ph2?
Why do most wealthy nations have much higher tax rates than the United States does? They steal money from their citizens. They spend much more on their armies.
a sum of money was shared among Daniel Elliot and frank in the ratio 5:7:8 if franks share was $2,781 more than Daniels share what was the original sum of money
what the answer for2/x +1/2 = 5/x
State programs such as education, transportation, and public safety are implemented by which branch of government? A.judicial B.legislative C.executive D.federa
Kevin can travel 22 1/2 miles in 1/3 hour. What is his average speed in miles per hour?
what was the tax of 1791 supposed to do
What is the difference of 21 15/16 minus 18 3/4 ?
100 is 10 more than my number
which type of colony had a governor and council appointed by the king