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

what links would you follow to see if a famous individual is alive or dead and if dead where the grave can be found
Combine the like terms: 6a + 8b - 3a I think its 3a + 8b, am I correct?
who were some major greek playwrights, and whay themes did they explore
Apples lose 71% of their weight while drying. How many fresh apples to you need to pick in order to get 128 lb of dried apples?
what most distinguishes northern european baroque painting from italian baroque painting? answer: the subject Matter
What were the monsters of the seemingly paradise like Panama
What are some examples of American foreign policy between 1867 and 1920? I need about 5 examples or more if possible. Thanks.
Explain how you can use place value to describe how 0.05 and 0.005 compare.
Almost Halloween does anyone have any good ghost stories?
DELIGHTED the spectators cheered for the acrobat identify the word in bold A. Past participle B. Participle C. Verb D. Infinitive