write a program that will accept 3 numbers to the value and check the greater number
Answers
Answered by
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
{
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