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

Find the area of the shaded regions: QUICKLY!!!!!
Need the help thanks guys
Factor the polynomial x^2+9x+8 using the pattern x^2+(a+b)x+ab=(x+a)(x+b)
What is the minimum value of force acting between two charges placed at 1 m apart from each other? (a)Ke² (b)Ke (c)Ke/4 (d)Ke² /2
I’m confused of how to do this
Identify the effects of the Great Schism.
how to get rid of a headache​
Find the equation of the midline of the function y = 2 sin(1∕4x) – 3. A) y = –3 B) y = 3 C) y = 2 D) y = 1∕4
plot the points (0, -2) (4, 1)​
If a state issued license plates using the scheme of 3 letters followed by 3 digits, how many plates could it issue?