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

11. Inductive argument: When I wore my blue socks, my team won. When I wore my white socks, they lost. I have to wear blue socks so my team wins. a. Is this ar
somebody please help meeeee pt.2​
the gray whale can spend up to 30 minutes underwater. How many times will the whale need to come up for air during a 6hr period
Who was the British leader at the Treaty of Versailles? Georges Clemenceau Winston Churchill Lloyd George Joseph Stalin
how is the quote “injustice anywhere is a threat to justice everywhere” valid today?
The water which penetrates into the ground is stored in (2 points) wells geysers springs aquifers
Which set of sides will not make a triangle
is 24.48 a interger​
A pet store sells 15 pounds of fish food in 3 days. What is the unit rate in pounds per day? A. 1/45 pound per day B. 1/5 pound per day C. 5 pounds per
How do I factorise 4 + 6x. Please show working out as well as answer, thanks!