import java.util.Scanner;

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

        Scanner kb = new Scanner(System.in);

        // read in an integer
        System.out.println("Enter height");
        int height = kb.nextInt();
        System.out.println("Enter width");
        int width = kb.nextInt();

        /*
            Recall: A boolean expression is an expression that evaluates to either true or false

            general form of conditional block

            if (boolean_expression) {
                // do something if boolean_expression evaluates to true
            }

            if-else blocks

             if (boolean_expression) {
                // do something if boolean_expression evaluates to true
             }
             else {
                // do something if boolean_expression evaluates to false
             }

             if-elseif-else blocks

             if (boolean_expression1) {
                // do something if boolean_expression1 evaluates to true
             }
             if (boolean_expression2) {
                // do something if boolean_expression2 evaluates to true
             }
             else {
                // do something if boolean_expression1 and boolean_expression2 both evaluate to false
             }
        */

        // conditional example

        if (height == 10) {
            System.out.println("height is equal to 10");
        }

        // if-else example

        if (height > 10) {
            System.out.println("height is greater than 10");
        }
        else {
            System.out.println("height is less than or equal to 10");
        }

        // if-elseif-else example

        if (height < 0 ) {
            System.out.println("height is less than 0");
        }
        else if (height > 10) {
            System.out.println("height is greater than 10");
        }
        else {
            System.out.println("height is between 0 and 10 (inclusively)");
        }

        /*  the following operators can be used in boolean expressions

            == (equality for primitive types)
            != (not equals for primitive types)
            > (greater than)
            < (less than)
            >= (greater than or equal)
            <= (less than or equal)

        */

        /* Compound boolean expressions can be constructed from boolean expressions */

        if (height < 0 || height > 10) {
            System.out.println("height is less than 0 OR height is greater than 10");
        }

        if (height < 0 && width < 0) {
            System.out.println("height is less than 0 AND width is less than 0");
        }

        if (!(height < 0)) {
            System.out.println("It is not the case that height is less than 0");
        }
    }
}