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

HELP NOW PLS!!! true or false - the area of the kite is 39^2?
The data in the table shows Rosa mowed 8 lawns each month. Represent the data pairs in the table as dots on the scatterplot
If a truck travels 275 miles on 25 gallons of fuel, then what is the average fuel consumption for the entire trip expressed in miles per gallon? Select one: F.
Write an equivalent expression using the associative property for (7 + 8) + 10.
2/3 x + = 15 solve the following equation
Fill in the blank with the correct conjugation of estar. Nosotros _______ bien. estáis están está estamos
I have to do this again Rate Dis handsome Devil​
What is the value of x in the solution of the following system of equations: 3x + 2y = 12 and 5x - 2y = 4 ?
A man checked himself into a Seattle hospital. He didn't know who he was and had no idea how he got to Seattle. The hospital staff could find nothing wrong with
It costs $0.60 to run a fan for 4 hours. How much does it cost to run the fan for 6 hours?