Smallest of three
import java.util.Scanner;
class two
{
public static void main(String[] args)
{
int a, b, c, d;
Scanner scan = new Scanner(System.in);
System.out.println("Enter all three numbers:");
a = scan.nextInt();
b = scan.nextInt();
c = scan.nextInt();
d = c > (a > b ? a : b) ? c : ((a > b) ? a : b);
System.out.println("Largest Number:"+d);
}
}