Variable and Operators (1)
Variable and Operators (1)
+ Addition a+b
- Subtraction a-b
* Multiplication a * b
/ Division a/b
% Modulus a%b
2. Relational Operators
These operators are used to compare two values.
Operator Description Example
== Equal to a == b
!= Not equal to a != b
` `
Operator Description Example
` ` Bitwise OR
^ Bitwise XOR a ^ b
~ Bitwise NOT ~a
= Assign a=b