/ Operators / comparison_operators.java
comparison_operators.java
 1  import java.util.Scanner;
 2  
 3  public class comparison_operators {
 4    public static void main(String[] args) {
 5      Scanner sc = new Scanner(System.in);
 6      int a, b, output;
 7  
 8      System.out.println("Enter the numbers");
 9      a = sc.nextInt();
10      b = sc.nextInt();
11  
12      if (a==b) {
13        System.out.println(a + " Equal to " + b);
14      }
15      if (a > b) {
16        System.out.println(a + " Greater than " + b);      
17      }
18      if (a < b) {
19        System.out.println(a + " Lesser than " + b);
20      }
21    }
22  }