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

Which option completes the explanation for conflict of interest in an organization? The organization wants you to avoid situations that make you choose between
What is 66681 rounded to the nearest ten thousand
Germany has a mild climate because of the influence of _____.
what is the purpose of Andrew Jackson’s message to congress “On Indian Removal”?
“A buzzing flame licked away their letters” is an example of personification characterization detail foreshadowing
20 people are going by van to a movie.Each van seats 8 people . How many vans are needed to take everyone ?
Why did early civilizations develop forms of writing
The legs of a isosceles triangle are 0.3 foot less then twice the base . The perimeter of the triangle is 4.9 feet . A: 1.1 feet B:1.4 feet C.1.9 feet D
A rifle fires a 2.10 x 10^-2 kg pellet straight upward, because the pellet rests on a compressed spring when the trigger is is pulled. the spring has negligible
conduct independent research to find a source that gives an opinion on either supporting or rejecting Syrian refugees in the space below summarize one generaliz