Computer Science, asked by abhinav222, 1 year ago

write a program that will accept 3 numbers to the value and check the greater number

Answers

Answered by sourajita
1
class h
{
    public static void check(int a,int b,int c)
    {
        if(a>b&&a>c)
        {
            System.out.println("a is greater");
        }
        if(b>a&&b>c)
        {
            System.out.println("b is greater");
        }if(c>b&&c>a)
        {
            System.out.println("c is greater");
        }
    }
}
hope this helped u

Similar questions
Math, 1 year ago