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

What is the design or organization of a text called? A. The format B. The content C. An analysis D. An inference
Calculate the partial pressure of argon in a gas mixture with a total pressure of 2.4 atm. The partial pressures of the other gases are: O2 = 128.0 mmHg He = 1
Wave travelling along right with speed of 0. 5 m/s time 4 second point p
Evaluate: (34x3)+7+ 24/6
HELP….. ASAP……HURRY……
I READY READING —> Fill in the blanks to compare the story and poem. Please help!Answers for the first box: formal, thrilling, informativeAnswers for the sec
Horst pulled pizza out of the oven and cut it into 4 equivalent pieces. He ate two of them. his sister came in and cut one of the remaining pieces into three sm
Write two to three sentences when you went to a new country and no one know you and you didn’t know anyone. What you feel at this time?
Imagine that you are planning a trip to Puerto Rico to see a friend. Write out the details of your trip in Spanish, describing every step of how you get to each
If you went door-to-door with a petition trying to get enough signatures for a proposal to be voted on by citizens, what form of direct democracy would you be e