package logics;
public class biggestTernery {
public static void main(String []args)
{
int res=biggest(10,1300,600);
System.out.print(res);
}
public static int biggest(int a,int b,int c)
{
return ((a>b)&&(b>c)? a :(b>c)?b:c);
}
}//class
output:
--------------------
1300
public class biggestTernery {
public static void main(String []args)
{
int res=biggest(10,1300,600);
System.out.print(res);
}
public static int biggest(int a,int b,int c)
{
return ((a>b)&&(b>c)? a :(b>c)?b:c);
}
}//class
output:
--------------------
1300
Không có nhận xét nào:
Đăng nhận xét