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

jackson had 250 total goals in his professional soccer career. 115 of them were made at home games. what percent of his total goals were made during away games?
what happens when something goes wrong with transcription and translation
Joseph's taxi charges $10.00 for the initial service of any drive. Then, the fee for each mile is $0.75. Which type of function is represented by this situation
Write a paragraph of where i normally go on holiday>?
What does it mean to you to be a thoughtful consumer of media?
what the break in the lithosphere called
advantages and disadvantages of resonance
wat are the names of flying mamoths
Is it true or false that wave interference only occurs with transverse waves?
On a sunny day mark can stay in the sun for 20 minutes before he gets sunburnt. He wants to sunbathe for 3 hours. What is the lowest level of sun protection tha