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

The curve x = 2 cos(t), y = sin(t) − sin(2t), 0 ≤ t ≤ 2π crosses itself once,find this intersection point and then find the equations of the two tangent lines a
Help me on how to solve it
1. the outer layer of skin that is responsible for the production of melanin and keratin. 2. a protein substance necessary to healthy skin. 3. the inner layer o
A bat and ball cost a dollar and ten cents. the bat costs a dollar more than the ball. how much does the ball cost?
Llena el espacio en blanco. El grupo de islas que forma un municipio en la provincia de Buenos Aires se llama El_________
There is an electric train heading north which way would the smoke blow.
David is the president of his student council. When the leadership team met for the first time, he asked each person to shake everyone's elses hand. If there we
genetics play a role in determining fat storage location and body shape myth or fact
Multiply and simplify: 3a(4a2 – 5a + 12)
Over time one group of species in a ecosystem is replaced by a different group of species through a process called