Operations Performed With Computer Programs



What Are the Operations Performed With Computer Programs?

There are 3 basic operations we can perform with computer programs; these are:

  1. Mathematical (Arithmetic)
  2. Comparison (Decision)
  3. Logical (Logic)
They can be listed as operations.

Mathematical Operations


OperationMathematicsComputer
Additiona+ba+b
Subtractiona-ba-b
Multiplicationa.ba*b
Divisiona÷ba/b
Exponentiationa^b

Priority order in mathematical operations and in the computer.
  1. Negativity of the number 
  2. Parentheses
  3. Mathematical functions (Cos, sin..)
  4. Exponentiation
  5. Multiplication and division
  6. Addition and subtraction
Note: For operations with the same priority, priority is given from left to right.

Comparison Operations

OperationMeaning
==Equals
<>Not Equal
>=Greater or Equal
<=Less or Equal
 >Greater than
<Less than


Logical Operations

OperationAs CommandComputer Symbol
AndAnd&&
OrOr||
NotNot!
Operation precedence in logical operations 
  1. Those inside parentheses
  2. Not
  3. And
  4. Or
It is ordered as such.