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

Which statement most accurately answers why the Europeans in the Caribbean felt the need to bring in enslaved African as laborers
What is the slope of the line graphed by the equation -2x + 3y = 6? 2 3 6 (2/3) « Previous Question Next Question »
The earth's plates moved over millions of years, bringing continents and other features of the earth to their present arrangement. Which term explains this
Graph f(x)=-1/2x+3. Please help!!!!
what's the volume of this figure
please help 20 points
What happens to the mRNA molecule when protein production is complete?
What does a system of checks and balances protect against
what is the best decimal representation of 2/10
How many adolescents will experience depression? a) 100% b) 1 in 25 c) 1 in 8 d) 80%