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

what is V=LWH for L?
what is the names for plants that survive a major disturbance?
whats the answer for -9x+1=-80 ? show work please
What is the value of the digit 2 in the number 9,642
how how many 25s are in 300
how to estimate, then find the sum of137,638 + 52,091
How do you solve 12,324,904 in word form
Solve each inequality, justifying each step you use x-5<35
What is the estimate for 403,446+396,755 help please
How do you convert 1.16 in to a fraction