Operator Use
+ Addition
- Substration
* Multiplication
/ Division
% Reminder of division
Logical operators.They compare two values and give result in 'true' or 'false'.
They are mostly used with the decision making statements.
Operator Use
= = Equal
! = Not equal
> Greater than
< Less than
>= Greater than or not equal to
<= Less than or not equal to
&& Check multiple conditions. If all the conditions are true, the result is 'true'. If any one
condition is false, the result is 'false'.
|| If any on of the conditions is true, the result is 'true'. If all the conditions are false, the
result is 'false'.
No comments:
Post a Comment