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 are the steps to solve this?
Which statement best describes how the energy stored in ATP is released to drive biochemical reactions? a. Energy is released when the ribose sugar reacts with
How do round, spiral, and rod-shaped bacteria look like?
Signs of Roman decline were manifested by agricultural and economic prosperity which undermined the values of Rome. the weakening of Rome's army which was force
Write a newspaper headline about the Boston tea party from the points of view of a loyalist and a patriot. Explain your headlines.
a trapezoid has an area of 20cm squared and a height of 5 cm. what is the sum of its top and bottom sides
Select the product of (7x - 2)(7x + 7).
How do you put 0.8918 as a fraction
The sum of two numbers is 104 and one exceed the other by 10. What are the numbers?
the ratio of boys to girls at the movie is 4:7. If there are 21 girls, how many boys are at the movie?