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

Explain why milestones are important in a lifetime fitness plan, and provide an example of a milestone.
Help me please The values of x and y vary directly and one pair of values are given. Write an equation that relates x and y. Simplify completely. X=12, y=3.
can anyone please help me Factor. 3n4+21n3+27n2 Enter your answer in the box.
While its reinforced concrete and steel construction physically allows the st. petersburg pier to stand, from a distance the up-side down, triangular shaped pyr
Is C8H18 a compound?
3(x2 − 1) − (x2 − 7x + 10)
Defensive strategies focus on ways to score points against the opposing team. True or False
What is the equation of the line that has a slope of 4 and a y-intercept of -7? y = -7x + 4 y = 7x - 4 y = -4x + 7 y = 4x - 7
Find the area of the triangle having vertices p(3, −1), q(3, 2), r(−3, −3).
how long does it take for the earth to go around the sun