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

solve for angle x and the length of line segments AO and BO
A kite is shown below with given dimensions in inches. What is the area in square units
What's the volume of the prism?
The United States wanted land around the _____.
Write why Fort Sackville might have been built where it was located
In a circle, if you connect the edge of diameter and a point on the circumference, it forms a right triangle. Is the above statement always true? sometimes true
write few lines about the picture​
What are some of the subjects that ancient Greek thinkers studied and taught?
What is the average rate of change for f(x) = 2X – 12 over the interval 4sxs8? A) 10 B) 30 60 D 90
full form of DVX please answer fast ​