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

Given parallelogram ABCD, diagonals AC and BD intersect at point E. AE=11x−3 and CE=12−4x. Find x
Q2. For the reaction given, how many litres of carbon dioxide gas will be formed by the reaction of 400 litres of oxygen with sufficient pentene (CH..)? The rea
In triangle ABC a=34 b=18 and c=17 Find m?A
If f (x) = -9x - 9 and g (x) = Vx - 9, what is (f ° g) (10)?
What material is compressed underground to form fossil fuels? O A. Oxygen and carbon dioxide B. Dead plants and animals C. Greenhouse gases O D. Water and ice
Instructions: Given the preimage reflect over the x-axis then they axis. Find the new coordinates. 10 8 6 1012 А -12 -10 8 6 4-2 -2 B -4 D -6 С -12 The coordina
Which inference can a reader make based on theinformation in the excerpt?​
What the answer now answer only if now answer corry
What WWI American soldier was awarded the Congressional Medal of Honor for his bravery after almost single-handedly silencing a German machine gun position and
two point charges of 5*10^-19 C and 20*10^-19C are separated by a distance of 2m. at which point on the line joining them will have the electric field zero?​