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

In a paragraph please explain what the song ALIENS by coldplay mean
If you dissolve 1.78 g of MgSO4 (Mm = 120.4 g) in 1.10 L of water, what is the molarity of the solution? (Report your answer to four places past the decimal poi
Two number cubes are rolled for two separate events: Event A is the event that the sum of numbers on both cubes is less than 10. Event B is the event that the s
what was the primary effect of the policy of internment
What is the polynomials of (2x^2-x+1)(x-3)
solve log base 6 (x-6) - log base 6 (x + 4) = 2
Use the drop-down menus to complete the statements about the public service video. the target audience for this video is. this ad represents changes from earlie
30 POINTS! Can someone give me a brief summary of the Soviet Union invasion of Afganistan
calculate time if distance is 53km and speed is 60km/hour?​
Mr. Slater invested $100,000 in a portfolio that is contains 60% stocks and 40% bonds. Over the course of a year, the value of the stocks increased to 67%, and