Hey guys. This is an interesting, yet simple post on operators.
There are three types of operators.
1. Arithmetic Operator
This operator type is easy to understand. These are just the signs for the different arithmetic operations.
Addition : +
Subtraction : -
Multiplication : *
Division : /
2. Conditional Operators
These signify conditions, for example, two statements are given. If we put the AND conditional operator, only if both are true, the output will be true. If we use the OR conditional operator, at least one has to be true for output to be true. If we use the NOT conditional operator, both should be false for the output to be true.
3. Relational Operators
These show the relation between 2 integers. The operators are:
Equal to : ==
Not equal to : !=
Lesser than : <
Greater than : >
Lesser than or equal to : <=
Greater than or equal to : >=
That's all on this post guys, stay tuned for my next one, bye.
Comments
Post a Comment