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

Medicine taken by a patient breaks down and eventually leaves the patient’s system. Suppose a dose of 60 milligrams (mg) of medicine is given and it breaks down
PLEASE HELP I WILL MARK AS BRAINLIEST!
How do you involve parents in your classroom
What was the British naval strategy during the American Revolution?
A particular series circuit consists of a battery and three resistors of different resistances. The resistors are placed in the series circuit so that the curr
Which method of selecting a President did many of the Framers initially favor? Congress chooses the President. A popular vote chooses the President. The p
Write 2 - 2+ √ 3 in the form of a+b √ 3, where a and b are integers. Tell me if it’s right. 2 - 2+ √ 3= 2(2-√ 3) —
a salt solution will conduct electricity but if sugar solution will not explain why​
hello!! Is oceanic crust the same as oceanic plate ? what’s the difference if they are not the same? please help , thank you very much:)
How many 2/3 cups servings are in a 5 cup box