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

tomorrow’s weather is forecasted to be mostly sunny with a gentle breeze. which type of sentence is this? exclamatory imperative declarative
what ways did the colonists do to show their anger
Lean body weight includes: a) muscle b) organs c) tendons d) ligaments e) body tissue f) all of the above
The following graph shows a seventh-degree polynomial: Part 1: List the polynomial’s zeroes with possible multiplicities. Part 2: Write a possible factored form
Who can read these words in English?very very thank you.
A SHORT summary about frenkenstein by marry shelly, please
write a fraction and a equivalent termanating decimal bewtween 0.2 and 0.6
Easy question A coach wants to see how long the members of the swim team can hold their breath. He times each member and finds that the average is 48 seconds. W
Help meeeeeee please
about insectivorous plants