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 a cubic polynomial in standard form with zeros 2 -4 and -3​
Which personal pronoun agrees with the antecedent in this sentence? Few of my friends have been out of the state on __________ own. A. our B. her
According to reformers, how did political machines harm the public? Check all that apply. by spreading power too thinly among different parts of government by w
Which statement best contrasts the character of Cassius with the character of Antony? A. Antony has a bigger ego and speaks of himself grandly, while Cassius is
What are the properties of acids?
Last year bill opened an investment account with 7400$, At the end of the year, the amount decreased by 24.5%. How much did this decrease in dollars? How much m
A bicycle wheel with a radius of 14 inches travels one mile (5,280 feet). Approximately how many revolutions does the wheel make?
The sales tax in your city is 4.4% and an item costs $3 before tax. How much tax would you pay on that item?
Find the sum: 564 + 3,598 = ?
A pop-quiz contains five true or false questions. If Emily guesses, what is the probability that she gets ALL FIVE correct?