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

Add a tag to each sentense. ​
HELP !!! find the surface area of each figure. Round it to the nearest tenth.​
A scientist measures the light from a distant star at 525 nm. The constant for Wien's displacement law is 2.9 x 10-3 m K. What is the approximate temperature of
Find the slope of the line containing the points (7,5) and (2, 4).
why is Touchpad used in the laptop computer​
What are the differences and similarities between ancient Egyptians and Pre Columbian Americas?
9. Write a polynomial function in factored form with zeros at -2, 5, and 6. F(x) = (x + 2)(x - 5)(x - 6) + F(x) = x3 - 9x2 + 8x + 60 O f(x) = (x - 2)(x + 5)(x +
factorise the following 1. x²-2x+15.... 2. y²-19y+90​
Which items are discounted? —- Ignore selected.
Two mechanics worked on a car. The first mechanic worked for 10 hours, and the second mechanic worked for 5 hours. Together they charged a total of $750. What