lilmissarieli7614 lilmissarieli7614
  • 19-06-2018
  • Computers and Technology
contestada

In the box provided below, write a for loop that adds the numbers in this sequence: 10,12,14,16,18, and stores the total in an integer variable called sum. int sum = 0;

Respuesta :

tonb
tonb tonb
  • 19-06-2018
int sum=0;
for(int num=10; num<=18; num+=2) {
   sum += num;
}
Answer Link

Otras preguntas

Ten is no more than four times the sum of twice a number and three.
What is the answer to 1/5 + 3/4
what are the three steps scientists take to evaluate a scientific explanation?
words that can describe the feeling of fur
Which two countries' borders were completely closed to their neighbors after this year's outbreak?
What is the relationship between 3.0 and 0.3
Is the number 526 a multiple of 6?
Which fish is able to eat prey many times larger than itself
how many people died and were wounded in ww1
How did the vikings eventually establish vinland