Question: 4) Based on the code below: If (x>2){ if (y>2){ z=x+y; System.out.printin( z is +z); } } else System out,println( x is +x);

 4) Based on the code below: If (x>2){ if (y>2){ z=x+y;

4) Based on the code below: If (x>2){ if (y>2){ z=x+y; System.out.printin(" z is " +z); \} \} else System out,println(" x is " +x); a) What would be the output for x=3 and y=2 ? b) What would be the output for x=3 and y=4 ? c) What would be the output for x=2 and y=2 ? 5) Based on the code below: if (x>2) if (y>2){ int z=x+y; System.out,printin(" z is " +z); d) What would be the output for x=2 and y=3 ? e) What would be the output for x=3 and y=2 ? f) What would be the output for x=3 and y=3

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!