what are relational and logical operators used for?
Relational operators are used to compare the values of two expressions. Relational operators are binary operators because they require two operands to operate. Logical operators are typically used with Boolean values. You can combine relational operators using logical operators.