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

A proper noun A. will not be found in a dictionary or thesaurus. B. sounds similar to a common noun, but is spelled differently. C. refers to a specific per
under what law were gay wolves reintroduced to Yellowstone National Park ? A National Environmental Policy Act B Endangered Species Act C Superfund (CERCL
Put the following events in the order in which they occurred. i. the creation of the British Raj ii. the partitioning of India iii. the Sepoy Rebellion iv. G
which is a property of water
What type of plant is the creosote bush?
Group work will help you make self-discoveries.
The aryans were the first Indians to develop
Marie curie contributed to society by A. Creating an effective steam engine B. Pioneering research on radioactivity C. Discovering vaccination and microbial fer
When we are confronted with a threat or challenge, the physiological and emotional response to that threat is known as:?
When ice is heated, it turns to water. Name the process.?