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

Which details from the text reflect the cultural context of the historical period in which Marco Polo wrote his travelogue? Check all that apply.
Which number is the BASE? 2³ = 8 *
Guess the answer! I need the correct answer in 2 minutes
Maria deposits her paycheck each week in a checking account. She plans to buy a car in the next year, so she decides to start saving $100 each month to pay for
hey! i know this isnt chemistry but uh I dont think anyone gonna answer me in psychics and its due in 30 minutes... marking brainlest if correct- yeah...
Use the drop-down menus to answer the questions about the document. This declaration was issued by [axis leaders or allied leaders] Which Potsdam Conference att
find the perimeter of the trapezoid
Plz help Micky stood at the mailbox, her hands shaking with anticipation, nerves, and excitement, as she prepared to mail her application to one of the most pre
Which is greater , 3 moles of sulfur or 2 moles of iron sulphide
what is sex ansd asexual.​