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

16 increased by twice a number is -24. Find the solution??
The Radius of a sphere is 5 feet. find the area of the great circle of this sphere
Which of the following rivers is the world's busiest waterway ?
The circumference of a circle is 6.28.What is the area of the circle?
solve 2/3 + 1/4x = 1/3
Which of the following rivers is the world's busiest waterway ?
Who were the Nazis ?
Find an equivalent ratio for 22/55 then write the proportion ?
How do u write 6 more the 7 times a number is 41 in algebraic equation??
Two 1 litre jugs are each filled with a mixture of olive oil and vinegar. The first jug has 3 times as much as oil as vinegar and the second jug has 4 times as