Question: public static void message ( int a , int b , int c ) { if ( a < 1 0 ) { if (

public static void message(int a, int b, int c)
{
if (a <10)
{
if (b <10)
{
System.out.print("X");
}
System.out.print("Y");
}
if (c <10)
{
if (b >10)
{
System.out.print("Y");
}
else
{
System.out.print("Z");
}
}
}
What is printed as a result of the call message(5,15,5)?
Responses
XY
XY
XYZ
XYZ
Y
Y
YY
YY
Z

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!