Control Structures
Control Structures
CONTROL STRUCTURE
• Greater than (>): Checks if the value on the left is greater than the value on
the right.
• Greater than or equal to (>=): Checks if the value on the left is greater than or
equal to the value on the right.
• Less than (<): Checks if the value on the left is less than the value on the
right.
• Less than or equal to (<=): Checks if the value on the left is less than or equal
to the value on the right.
• Equal to (==): Checks if the values on both sides are equal.
• Not equal to (!=): Checks if the values on both sides are not equal.
LOGICAL (BOOLEAN) OPERATORS
• Logical AND (&&): It returns true if both the operands are true.
• Logical OR (||): It returns true if at least one of the operands is true.
• Logical NOT (!): It is used to reverse the logical state of its operand. If a
condition is true, then the logical NOT operator will make it false.
SELECTION