Thursday, December 31, 2015

What is Computer Operators Symbols?

Posted by Unknown
Operators are symbol that used to do arithmetical logical and relational operations.

There are mainly three types of operators

1 Arithmetical operator:

It is used to calculate arithmetical calculating such as addition, subtraction, multiplication, division etc.
They are:

+ = Adding E.g. a+b
- = Subtraction E.g. a-b
* = Multiplication E.g. a*b
/ = Division E.g. a/b
% = Modules (Remainder) E.g. a%b

2 Logical operators:

It is used to represent and do logical expression such as:
1 > A AND B
2 > A OR B
3 > A NOT B

AND logical AND E.g. = && (a&&b)
OR logical OR - !! (a!!b)
NOT  logical NOT - ! (a!=b)

3 Relational Operators:

It is used to execute relational expression such as
1 > greater than
2 < less than
3 >= greater than as equals
4 <= less than as equal to
5! not equals to
6 = equals to

Does article was helpful?

0 comments:

Post a Comment