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 is a factor of 54xy + 45x + 18y + 15?
Find the volume of the ellipsoid x^2+y^2+9z^2=64
Can someone please help me solve this math problem, please? Thanks.
Based on sociologist robert merton's typology of prejudice and discrimination, _____ may have no personal prejudice but still engage in discriminatory behavior
Airborne mercury has received special attention because it is a widespread and persistent neurotoxin (a substance that damages the brain and nervous system). mi
A bicycle store costs $2,400 per month to operate. The store pays an average of $60 per bike. The average selling price of each bicycle is $120. How many bicycl
What is the relationship between Lincoln's proclamation and the 13th Amendment?
Which of the following is a problem a baby may have if the mother drinks alcohol while she is pregnant? A.motor skills problems B.hearing and vision problem
Devaughn's age is two times Sydney's age. The sum of their ages is 30 . What is Sydney's age?
Maria and Ming start at the same point and drive in opposite directions. Maria drives 50 mph and Ming drives 30 mps. How far apart will they be in 2 hours