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

can u tell me how to solve this promblem 4/7 plus 3/7
f f(x) = 2x2 and g(x) = 3x, what is (g o f)(x) a. 6x2 b. 9x2 c. 18x2 d. 8x4
If 52 x equals 7800 y what does 1 x equal? What is the maths equation?
let f(x)=2x-3 and g(x)= -x^2-1 find ( g o f) (x)
How would you define psychological realism?
Write a complete reaction of succinic acid and acetic anhydride
If f(x) is 4x-3 what is (f^-1of) (10)
When MgCO3(s) is strongly heated, it produces solid MgO as gaseous CO2 is driven off.Does the oxidation number of carbon change upon the formation of CO2?
You shoot an arrow set a target. The parabolic path of the arrow passes through the points shown in table. X. Y 30. 6 60. 7 100. 4 A. Find a quadratic function
take 2 identical bowls filled with water.shine a spotlight on one and place one away from the spotlight in the same room. which shows higher evaporation and why