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 do you think a black hole is
Which value of x will make the equation2x-30=6 true?
an object that weighs 10 lb on earth would weigh only 4lb on mars. If you weigh 95 lb on earth, how much would you weigh on mars
What is a treaty? A ) an informal agreement between two or more nations B) a formal agreement between two heads of state C) an informal agreement between two he
When Australia became the federated Commonwealth of Australia in 1901, Sydney and Melbourne competed to be the capital city. A compromise was reached and ______
which best describes authentication
is cobalt chloride solution a conductor or an insulator
Madison is making party favors.She wants to make enough favors so each guest gets the same number of party favors.She knows there will be 6 or 8 at the party. W
The Baltic States have made efforts to diversify their ________________. a. economies c. 21 and culture b. population d. religion
How do you write 39/10 as a percentage?