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

Help please and explain iti posted this one before but it got deleted somehow
Find the distance from the point (9, –2) to the line y = 3∕2x + 4. Choices are in the attachment...
[!URGENT!] In the figure PQ is parallel to RS. The length of QT is 4 cm; the length of TS is 6 cm; the length of PQ is 10 cm. What is the length of RS?​
The line of symmetry is involved in which transformation? Rotation Migration Reflection Translation
please answer what is 2y^4 x 5y^3
Not sure how I would find what axis
Sal wrote the statement below to represent the inequality 8n - 5 ≥ 25. Which words should Sal use to complete the verbal statement? The product of 8 and n decre
Which of these are examples of polygenic traits?
12-3*y=0 help and explain plss
What precautionary measure should be taken when storing oil and fats at home?why homogenization and pasteurization of milk are performed at an industrial scale?