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

When the federal government subsidizes higher education in the form of Pell grants to students, it results ina. An increase in the supply of higher educationb.
What is the value of the 5 in 673,512
I need to solve for y in -19 = y + 6
A 245.7g sample of metal at 75.0℃ was placed in 115.4g of water at 22.0℃. The final temperature of the water and metal was 34.0℃. If no heat was lost to the sur
-4, -7 1/3 distance on number line
I need help on This question please I’ll give you brainliest
Where in the world do people live and why?​
Assume a consumer is currently purchasing services and goods. If the amount of satisfaction one gains from services decreases, what will likely happen to the ma
At the potluck, there were 6 pecan pies, 7 lemon pies, 13 cherry pies, and 8 apple pies. Find the ratio of apple pies to the total number of pies. Write each ra
Suppose that a photoelectric experiment is conducted using two lasers, one tuned to 450 nm(blue)output and the other tuned to 560 nm (yellow) output. Both frequ