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

Complete the table of values for the function.f(x) = ( 1/3) ^xa=b=c=
1, who wants to be friends??? 2. Why were people migrating to large cities in the early 1800’s?
which of the following statements explains the impact that the russian revolution had on world war 1
What was Dan Cody’s flaw? How might this relate to Gatsby? What did Dan leave Gatsby? What happened?
Pls Help Me For 30 Points! Match the words with the definitions. 1.duties that all citizens have; some are mandatory, like paying taxes and serving on juries;
Pq o militares se meteram no governo de d pedro segundo?
The ova pass to the uterus through which structure? a. follicle b. vagina c. oviduct d. cervix
Before creating a business plan an entrepreneur must research ____ business in the past: A. Similar B. Different C. All D. Random
identify the two rational numbers. A) √2 B) 1.01 C) 1.010010001... C) -2/5
What is the internal energy u of one mole of air on a very hot summer day (35∘c)? express your answer numerically in joules to two significant figures?