Java Program To Find Minimum Of Two Numbers Using Conditional Operator
Chapter:
Interview Programs
Last Updated:
14-06-2016 15:33:25 UTC
Program:
/* ............... START ............... */
public class JavaFindMinimumTwoNumberUsingConditionalOperator {
public static void main(String args[]) {
int i = 10;
int j = 8;
int result = (i < j) ? i : j;
System.out.println(result + " is a minimum value");
}
}
/* ............... END ............... */
Output
Tags
Find Minimum Of Two Numbers Using Conditional Operator, Java, Interview Programs