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's the formula to perimeter
Your oven has a power rating of 5000 watt... Your oven has a power rating of 5000 watts. a. How many kilowatts is this? b. If the oven is used for 2 hours to ba
why are fossils of clams more numerous than those if the worms or cnidarians ?
What is 4p-13p-p=-150 More 2 step equations. I don't get this one at all
At the start of "The Necklace," why does Mathilde's husband go through "great trouble" to get an invitation to the ball?
The first land battle of the civil war took place near ________, Virginia, on july _ _, 18_ _At this battle, the union army ___________ the confederate army.wha
can we store electricity from lightning?
katherine spends 1,089.72 each month for rent and supplies to run her salon. If she charges $18 for a haircut how many hair cuts must kathrine do to cover her e
Solve for y.8^3-3y=256^4y
what is the definition of sin