The result is true

Report a typo

You are provided with a Java program that includes variables a, b, and c. Fill in the blanks in the expression for a result variable with the appropriate relational operators, ensuring that when the program is executed, the printed result will be true.

Fill in the gaps with the relevant elements
public class MyClass {
    public static void main(String[] args) {
        int a = 20;
        int b = 10;
        int c = 12;

        boolean result = (a  b)  (b  c);
        System.out.println(result);
    }
}
>=&&!=

Create a free account to access the full topic