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 x log(x–4)+log(x+3)=2logx
Write each rate as a unit rate 3 inches of rain in 6 hours
what happens when the smog lifts in los angeles,california
Jorge friend Anna planted a garden with the same ratio of tulips to daises Anna garden has 48 tulips how many tulips and daises does Anna have this pic is for J
what is 11.11 as a mixed number ?
can someone help me with number 11 its increasing and I don't get I get how to do decreasing just not increasing
who is the person who started a newspaper called the north star
what were the causes and effects of the pueblo rovolt?
Describe how the ocean plays a role in stabilizing Earth’s weather conditions
Blain exchanges $100 for yen before going to Japan. If each U.S. dollar is worth 88.353 yen, how many yen should Blain receive?