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

How do producers decide whether to diversify and production or specialize and trade?Pls help !! this is my third time asking !! pls i really need this​
Robin has 3 feet of ribbon. She uses part of it for a craft and has 2.5 feet left. She divides the 2.5 remaining feet among her 10 friends. How much ribbon does
What is the value of x^2x 2 if x=4x=4?
The weight of an object can change based on the location of the object. true or false
It is 1774, and you are visiting the colonies from a country other than Great Britain. In a letter to a friend who lives in your home country, write about the B
HELP ME PLEASEEEEEEE
Which one of the following hydrocarbons exhibit geometrical isomerism? A. 1-butene B. 2-butene C. 1-pentene D. 3-hexene
What can humans do to fix ocean acidification? And what can a high schooler do to help ocean acidification?
The diameter of the solar system is about 300,000,000,000,000 kilometers, which can be written as 3 x 100 kilometers. What is n?
Add a construction job for a gallery there are 20 painters of those painters 11 of them are painting interior of the gallery what percent of these painters are