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

Describe a memorable school assignment or project you've done. What made that assignment fun or memorable?
PLSSS HELPPPPP- Evaluate the expression. 1 1 4 25 3 Write your answer as a fraction or as a whole or mixed number.​
¿En qué momento se produce la hinchazón del tejido?
Re-read Atticus’s comments to Jem about the Ku Klux Klan on page 196of to kill a mockingbird.What do these comments add to Atticus’s characterization? *If you c
Write an explicit formula for the sequence. -4,7,-10,13,-16
Put into your own words: "We hold these truths to be self-evident, that al men are created equal, that they are endowed by their Creator with certain unalienabl
Who was Francisco Franco?
6 4/5 + 3 2/3add and simplify ​
please help i'm having a very hard time understanding this!
HEEEEELLLLLLPPPPPPP!!!!!!!!!!!!!! Find the area and perimeter. 20x2 − 12x; 10x − 5 12x2 − 20x; 7x − 5 7x2 − 5; 11x − 10 12x2 − 20x; 14x − 10