Write a java program to find largest of three numbers using ternary operator in java. This problem can also be asked like, find maximum of three numbers using conditional operator.
Given three input numbers, Write a java code to print largest or biggest of three numbers using ternary operator.
Suppose, Given three input numbers a, b and c. If a is greater than b and c then a is the largest of three numbers. Similarly, if b is greater than a and c then b is the largest of three numbers else c is largest.