MamunaI3anAllog MamunaI3anAllog
  • 04-01-2017
  • Computers and Technology
contestada

What is sum after the following loop terminates? int sum = 0; int item = 0; do { item ; sum = item; if (sum > 4) break; } while (item < 5);

Respuesta :

kaevras
kaevras kaevras
  • 08-01-2017
int sum = 0;
int item = 0;
do
{
    item;
    sum = item;
    if (sum > 4)
        break;
} while (item < 5);


You will generate a compile error, as having (item;) as a statement on its own is invalid.
Answer Link
emilypadilla16 emilypadilla16
  • 21-02-2019

Sorry i don’t know the answer

Answer Link

Otras preguntas

Write a slope intercept equation for a line that passes through (4,0) and (-2,2)
A 50 kg pitcher throws a baseball with a mass of 0.15 kg. If the ball is thrown with a positive velocity of 35 m/s and there is no net force on the system, what
I need help learning how to solve this problem please.
Rocky mountain bottling company produces a soft drink that is sold for a dollar. at production and sales of 800,000 units, the company pays $600,000 in producti
What is the difference between covalent bonds and ionic bonds? a. Covalent bonds involve the sharing of pairs of electrons between atoms; ionic bonds involve th
Does anyone know this
When a person reads a poem aloud, which technique is most effective for rousing the emotions of the audience?
Find the root of the equation p+9=9. Also draw its graph.
Write a problem that the expression 3(-7) - 10 + 25 = -6 could represent
Read the sentence. Later they discovered a faint trail through the dark forest. Which words are nouns?