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);
Output: y = 1 and count = 100
Need a fast expert's response?
and get a quick answer at the best price
for any assignment or question with DETAILED EXPLANATIONS!
Comments
Leave a comment