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

Does anybody know how to do question 2 please show working out
Please help I don’t know what to do
How many electrons in the same atom can share the quantum number n = 2? 2 6 8 10
please answer quick you will be rewarded handsomely!!!
evaluate 8! x 3!/ 5! x 6!
¿Por qué es importante estudiar español? (5 points) Select one: a. Es importante que yo estudio español porque quiero aprender de otras culturas. Incorrect
John wilkes booth wanted to become a martyr for the confederacy; instead, lincoln became one for the united states. what is a martyr? a. one who endures sufferi
Match each energy source with the correct description
If measuring experimental results, what can you predict about the work output of a 1200 Watt hair dryer? a. The work output of the hairdryer will be less than t
Where have some of the strongest and earliest impacts of global warming occurred?