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

After a drug is administered, it undergoes the process of .
A person who brings things into the country illegally
Taxi service x charges $8 as the base fare and $2.50 per mile. Taxi service y charges $4.50 per mile with no base fare. After how many miles is the cost of the
Which sentence uses the correct pronoun? Each king must have its castle. Each king must have his castle. Each king must have his or her castle. Each king must h
A motif of the balcony scene is
give examples of roman ideas in language and architecture that exist today
To keep order among the Chinese people, Hongwu created
According to Nasser, why does the Suez Canal rightfully belong to Egypt?
What do some historian believed Leisler's Rebellion was an early sign of? a. conflict between colonial governors and legislatures b. conflict between the coloni
para comprar uma motocicleta, Rita decidiu economizar dinheiro durante 6 meses consecutivos. para isso, ela economizou sempre o dobro da quantia economizada no