//Program to explain the concept of Conditional Operator in different style
class ConditionalOperator
{
public static void main( String args[ ] )
{
int a, b, max;a = 25;
b = 14;max = ( ( a > b ) ? a : b );
System.out.print("\nMaximum Value is= " + max );
}
}
Output:Maximum Value is= 25