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

identify the graph and the solution of the given system. 2x+3y=0. -3y=6-2x
The amount C in grams of carbon-14 present in a certain substance after t years is given by C = 20e^-0.0001216t estimate the half-life of carbon-14
Using the formula P = I * V, if current (I) is 10A and voltage (V) is 120V, what is the power (P) in watts? a. 1200 watts b. 1.2 kW c. 1000 watts d. 12 kW
grade 12 speech topics​
The average distance between the earth and the moon is 386,000 km. Expressed in scientific notation, this distance is written as
Use and misuse of mobile phone essay
what percent of 105 is 63
4 × 0,4 × 0,04 × 0,002
Almost all the helium in the universe was formed between 2-15 minutes after the Big Bang. True or False?
There are 20 math problems divided into 4 equal columns on a worksheet. Your teacher has you cross out one column of problems. Use the equation 20-20/ 4=p to fi