Java program to perform Logical and Relational operations
import java.lang.*;
import java.util.*;
public class Greater
{
public static void main(String args[])
{
int a=100 ,b=20,c=50;
if(a>b && a>c)
System.out.println("A is Greater");
else if(b>a && b>c)
System.out.println("B is Greater");
else
System.out.println("B is Greater");
}
}