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 is an enclosed body of coastal water that is a mixture of salt water and freshwater called? 1. watershed 2. tributary 3. drainage basin 4. estuary
whats the difference between diffusion and osmosis?
Please help i don't know the answer to number 11
What does the speaker in "My hearts leaps up" mean by the phrase "natural piety"
Find the measure of angle x in the figure below: Two triangles are shown such that one triangle is inverted and they share a common vertex. The lower triangle
How long did WW2 last?
The radius of a sphere is 6 units. Which expression represents the volume of the sphere, in cubic units? π(6)2 π(6)3 π(12)2 π(12)3
compare. use <,>,or = (2^7)^2 2^10*2^2
your found cooked rice left out of the counter all night the safe way to handle it is to
during which period of japanese history did the changes shown in this wood block print occur?