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

Find all positive integers n such that n^4- 1 is divisible by 5.​
Explain the role of religion in the Dutch and French North American colonies pleaseeee
A suspension bridge has two main towers of equal height. A visitor on a tour ship approaching the bridge estimates that the angle of elevation to one of the tow
Use the drop-down menus to complete the sentences. Mongolia, Japan, and the Koreas are largely , with large majority ethnic groups. However, the make up a small
A farmers land is separated jcuxududinto sections of size 2 1/5 acres suppose there are 2 7/9such sections . How many acres of the land does the farmer own? Wr
Factor x3 + x2 + x + 1 over the complex numbers.
Mason, 51, exercises, has a healthy diet, and is not overweight. His body and organs are losing capacity. Yet because he has not had any major bodily stress, hi
help asap Create a eight-question survey that you will test with your family and/or neighbors. You should survey at least 10 people. Your survey must ask for ce
Choose the selection in which the sentence is properly punctuated. A) NO CHANGE B) My sister and I recognized and identified, the flaws in the man's argument bu
-1(x+5)=3[x+(2x-1)] solved and justified each step