Answer to Question #194296 in Java | JSP | JSF for Saad Ur Rehman

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);

1
Expert's answer
2021-05-17T03:36:40-0400
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!

Comments

No comments. Be the first!

Leave a comment

LATEST TUTORIALS
New on Blog
APPROVED BY CLIENTS