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

look at the image below
Help please I’m not sure what the answer for this one is no need to explain
(LOOK AT THE PICTURE FIRST ) What tip would you give ABRAHAM LINCOLN to improve his penmanship?
If a state issued license plates using the scheme of 3 letters followed by 3 digits, how many plates could it issue?
ABCD is a rectangle. AB = 3x+5, AC = 7x-9, BC = 2y+5, BD = 2x+62. Solve for x. (Round your answer to one decimal place, if necessary.)
Write a paragraph about your weekly schedule. Describe the activities you do from Monday to Friday and at weekend including your college work, social life, pers
How many two-digit numbers are there which are multiples of both 2 and 7? ​
If 40 men working on a U.S. government project can complete the job in 100 hours, how many men would be required to complete the job in 80 hours?
A shopkeeper marked the price of an article a certain percent above the cost price and he allowed 16% discount to make 5% profit. If a customer paid Rs 9,492 w
Geometry, please answer question ASAP