L3.2: Logical Expressions: Comparison operators - Greater than

PHOTO EMBED

Tue Oct 17 2023 07:39:58 GMT+0000 (Coordinated Universal Time)

Saved by @testpro #java

public class Main {
    public static void main(String[] args) {

        int a = 15;
        int b = 12;

        boolean greaterThan = a > b;
        System.out.println("a > b is " + greaterThan);
    }
}
// Output: a > b is true
content_copyCOPY