public static int median(int x, int y, int z){
if(x <= y)
if(y <= z)
return y;
else
return z;
else if (y <= x)
if (x <= z)
return x;
else
return z;
else if (z <= x)
if (x <= y)
return x;
return y;
첫번째 if 박스에서 x랑z도 비교하라는데 어찌해야하죠
public static int median(int x, int y, int z){
if(x <= y)
if(y <= z)
return y;
else
return z;
else if (y <= x)
if (x <= z)
return x;
else
return z;
else if (z <= x)
if (x <= y)
return x;
return y;
첫번째 if 박스에서 x랑z도 비교하라는데 어찌해야하죠
잘봤습니다