Monday, 27 April 2020

Greatest Number among two number

Write a program to take any two number and find the greatest number. 

class Greater
{
    public static void main(String arg[])
    {
        int a=5 , b=10 ;            
        if(a>b)
        {
            System.out.println(" A is greater");
        }       
        else
        {
            System.out.println(" B is greater");
        }
    }
}

Visit my YouTube channel  :  SK Skill India 


1 comment: