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

Which of the following facts about Sri Lanka is NOT true? a. Bhutan has greatly influenced Sri Lanka. b. Sri Lanka has many tea plantations. c. Sri Lanka’s two
Which of the following was not a factor contributing to the American Revolution? A. Spain's attempt to expand north from Florida into the British colonies
wind blowing sediment against the rock or land area, or sand blasting is called
How do i multiply a mixed number?
What parts of the human body might become vestigial in the next million years?
if two parents each have a dominant and recessive gene for eye color and have a baby,how many possible combinations of genes could there be?
What was the goal of Woodrow Wilson's Fourteen points?
Sarah is saving money to take a trip to Oregon. She received $450 in graduation gifts and saves $120 per week working. Write an expression to represent how much
A 4th degree polynomial function has zeros at 3 and 5-i. Can 4+i also be a zero of the function?
In Lois Lowry's The Giver, why aren't twins allowed/ accepted into the community?