What is the output of the following code?
int x = 100;
int y = 200;
if (x > 100 && y <= 200)
System.out.println(x + “ “ + y + “ “ + (x + y));
else
System.out.println(x + “ “ + y + “ “ + (2 * x - y));
100 200 0
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