- Logical operators are used with decision making statements.
- These operators are used to control two statements together in control statements.
- For example, you can check 2 conditions instead of one in an if statement.
- T he following about logical operators is being given.
Operators
| Description |
&& (AND) | When both conditions are true then the control statement value becomes true. |
|| (OR) | When any one condition is true, the control statement value becomes true. |
! (NOT) | These operators are used with the same condition. When that condition is false then the control statement's value becomes true. |
No comments:
Post a Comment
Please do not any spam link in Comment Box