Question #194296

What is the output of the following Java code?

count = 1;

y = 100;

while (count < 100)

{

y = y - 1;

count++;

}

System.out.println("y = " + y + " and count = " + count);

Expert's answer

Output:

y = 1 and count = 100

Need a fast expert's response?

Submit order

and get a quick answer at the best price

for any assignment or question with DETAILED EXPLANATIONS!

LATEST TUTORIALS
APPROVED BY CLIENTS