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

Eddie is 7 years older than Brian.  If Brian is x years old, then how old was Eddie 11 years ago?
Can a camel survive in : Arctic , desert , town , forest and ocean?
What is the x-intercept of the line with the equation  8x-1/3y=16
Which rational number is greater? — 0.76 or 0.76? And why?
What kind of consumers do omnivores eat?
TRUE or FALSE does 16/6 - 2/9 = 2 4/9?
plrase help a little stuck here
Words to match the expression 36÷4
Who was John Howe ( American revolutionary war) and why did he matter to our history?
Divide 33 photos into two groups so the ratio is 4:7. How do you properly write the answer? 4 7 4 7 4 7 4+4+4=12 7+7+7=21 12+21=33 Is th