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

Wilma and Greg were trying to solve the quadratic equation x^2 + bx + c = 0. Wilma wrote down the wrong value of b (but her value of c was correct), and found t
How did Burnside's aggressive moves lead to failure? A:He was removed from command for his actions. B:He was unable to keep command of his troops. C:He kept att
Factor the trinomial x^2-13x+40
In reviewing a written work, which of the following criteria would the author be least likely to use? A. a survey B. logic c. use of support D. coherence
Anna uses 7.9 pints of white paint and blue paint to paint her bedroom walls. 1 4 of this amount is white paint, and the rest is blue paint. How many pints of b
2x+3y=12 find four solutions​
Find the volume of the rectangular prism
71^2 ÷ 7^4 is equal to _____. 13 3 73 78
Answer the following questions briefly 1.Write the definitions of *Comminution and *Calcination
Mary wants to create 3D shapes, refraction, and cloud patterns in an image. Which filter should Mary use? A. Noise Filter B. Blur Filter e C. Render Filter D. A