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

convert 10 degrees C to Fahrenheit
Which three sentences in this excerpt from "Quality" by John Galsworthy show that the writer admired the boots that the boot maker had crafted?
Which expression is equivalent to √-80? 4√5 -4√5 -4i √ 5 4i √ 5
Explain how you will benefit most from improving your math skills.
help me solve for 9 and 10 please
Which number would you divide the numerator and the denominator of the first fraction to yield the second fraction?
Highlight the claim, evidence, and reasoning in the paragraph below.
Which set of numbers are imaginary numbers?
what were the historical origins of Christianity and how did that affect the development of montheism in the roman empire?
a student is reading a book at 350 word per minute convert this to word per hour