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

Popcorn machine is 3/4 of its height. What's the lengh of the machine
WHY is the male turkey often referred to as "Tom Turkey?"
Why did president roosevelt support conservation
Which word in the sentence is the predicate nominative? Down the road, that dark shape might be a dog. A. dark B. dog C. shape D. road
100 year of jrotc past present and future
Which is greater a 2.75-gallon container of juice or a 12-liter container of juice?
root word of enslaved
​Select the entire correct adjective clause for the sentence below. Then select which word is modified by the clause. Those whose tickets have been punched may
what can be found in the computer tower
2. What is the solution to the equation? If necessary, round your answer to the nearest tenth. A. 3x^2 = 48 B. x^2 – 2 = 12