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 promoted the egyptians to build pyrmaids?A() egypt wanted to display its power and knowledge to the worldB() their gods demanded massive public works proje
When thinking about your self-awareness and what kind of personality you have, what is a trait you should reflect on?
A train travels 53 kilometers in 1 hours and then 81 kilometers in 3 hours what is its average speed?
The percent from $18 to $45
The sum of two exterior angles of an isosceles triangle is equal to 240°. What are the measures of the interior angles? THERE ARE 3 ANSWERS THAT GO WITH THIS I
How was imperialism a cause of WWI?
Can someone please help me i'm not good at writing Think about the steps you take to get in the mood to create in your favorite art, and then write a paragraph
Combine the like terms to create an equivalent expression 3z+2+(-5z)+6
What expression is equivalent to 2(8g)
Please answer as soon as possible! will give branliest! worth 50 points