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

Question from Campbell Biology Chapter 16: 57) The spontaneous loss of amino groups from adenine in DNA results in hypoxanthine, an uncommon base, opposite thym
Mike bought an MP3 player for $150. The sales tax rate was 8 percent . How much sales tax did he pay on the MP3 player?
An equation is shown. 2(3−7)+6=x−14+6 What is the value of x ?
PLEASE ANSWER FAST A brief, "first-step" presentation of a work to be completed is called what? A. draft B. roll call C. veto D. sponsor
❤❤❤❤PLEASE HELP ASAP I WILL MARK BRILLIANT WHO ANSWERS THESES QUESTIONS ❤❤❤❤ 1. Which of the following passages from the text suggests that Johnny is becoming
Ap human geography how is gerrymandering combined with ethnicity for political use?
What is the primary nursing responsibility when caring for a client who is experiencing an obstetric hemorrhage associated with uterine atony?
Explain the difference between an i/o‐bound process and a cpu‐bound process.
The extraocular muscles and the muscles of mastication are part of the back muscles. abdominal region muscles. face muscles. legs and hips muscles.
Rae is training for cheerleading, so she starts rollerblading for 45 minutes each day. Her heart rate reaches 128 beats per minute, but her target heart rate zo