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

40 mL 30 mL 20 mL 10 mL 30 mL 20 mL 40 mL These graduated cylinders are the same size and there is the same amount of water in each. If the red 30 mL 20 mL marb
Your backpacker's guide contains a grid map of Paris, with each unit on the grid representing 0.125 kilometers. If the Arc de Triomphe is located at (- 3, - 5)
2y+5x=23 solve for y
Order the numbers from lowest to highest. a. 12HEX b. 12DEC c. 12OCT a,b,c c,b,a c,a,b a,c,b
When you check your pots and pans in your kitchen you will see that the most of Them are made of stainless steel or Aluminum.​
Verify that a²-b² /a+b = (a-b)​
(a) Find the netid and the hostid of the following IP addresses: i. 114.34.2.8 ii. 132.56.8.6 iii. 208.34.54.12 (b) Find the class of the following IP addresse
an insulated beaker contains 300g of water, intially at 30°C. water at 100°C is added until the temperature of the mixture reaches 50°C. the specific heat capac
Find the coordinates of M, the midpoint of AB, where A and B have the following coordinates: A(2,12), B(8,4)
Correct answer please? I cant figure it out