You are presented with a series of expressions. Fill in the gaps with the correct relational and logical operators to make all the expressions evaluate to true.
Comparing values. Relational operators
All in one
Report a typo
Fill in the gaps with the relevant elements
int num1 = 10, num2 = 20;
boolean result1 = num1 num2;
double value1 = 7.5, value2 = 7.5;
boolean result2 = value1 value2;
int x = 15;
double y = 14;
boolean result3 = x y;
char char1 = 'A', char2 = 'F';
boolean result4 = char1 char2;
boolean bool1 = true, bool2 = false;
boolean result5 = bool1 bool2;
boolean bool3 = true, bool4 = true;
boolean result6 = bool3 bool4;
boolean bool5 = false;
boolean result7 = bool5; ___
By continuing, you agree to the JetBrains Academy Terms of Service as well as Hyperskill Terms of Service and Privacy Policy.
Create a free account to access the full topic
By continuing, you agree to the JetBrains Academy Terms of Service as well as Hyperskill Terms of Service and Privacy Policy.