class Smallest
{
                public static void main(String args[])
                {
                                int a=7,b=9,c=5;
                                if(a<b && a<c)
                                                System.out.println(a+" Is Smallest Number");
                                else if(b<c)
                                                System.out.println(b+" Is Smallest Number");
                                else
                                                System.out.println(c+" Is Smallest Number");
                }
}

JAVA 3.PNG

Advertisements