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

A wire is bent into four perfect semi-circles. What is the length of the wire, in cm? Leave your answer in terms of pi.
Water pollutants in rivers and lakes can be removed by
How many moles of oxygen are needed for the complete combustion of 12.6 moles of acetylene? 2C2H2 + 5O2 → 4CO2 + 2H2O
Factorise this expression as fully as possible 12x^3 - 9x^2
please help with this i will mark
why is english so confusing we have where were and wear BUT THEY ALL SOUND THE SAME put how many points u got in your answer
Summarize the definition of genetic engineering
What is the best thesis statement to introduce an essay on factors that caused the escalation of the Cold War? A. The Cold War was a period of tension between t
Roberto said, "I'm thinking of a fraction that is equivalent to 3/9. The denominator is 2 more than the numerator." What fraction is Roberto thinking of? Enter
Create some chains to show where all of the food you ate came from. Here’s an example. If you ate some bread, this is what the bread chain might look like : Su