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

I am giving a lot of points for a stupid question. I need help honestly on this. What kind of experiment would I do? That's what I don't understand. If you wer
please help answer the question
Which of the following is a solution of x^2 - 2x = -8?
In the seven step military problem solving process you have identified the problem. what is the next step?
Cato dicit Carthaginem deletam esse. Cato says that Carthage was destroyed. Cato said that Carthage would be destroyed. Cato says that he had destroyed Carth
Can someone tell me a disaster that happened in America in the ocean (besides Deepwater Horizon). Thanks!!
How are folktales and fairy tales related?
I can't seem to figure it out can someone please help me??
Jane, a former corporate executive, retires and, eventually, spends her time happily landscaping her home and working for a volunteer agency serving the local h
Find the product of (2x + 5y)2.