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:- Mathematical (Arithmetic)
- Comparison (Decision)
- Logical (Logic)
They can be listed as operations.
Mathematical Operations
| Operation | Mathematics | Computer |
| Addition | a+b | a+b |
| Subtraction | a-b | a-b |
| Multiplication | a.b | a*b |
| Division | a÷b | a/b |
| Exponentiation | a² | a^b |
Priority order in mathematical operations and in the computer.
- Negativity of the number
- Parentheses
- Mathematical functions (Cos, sin..)
- Exponentiation
- Multiplication and division
- Addition and subtraction
Note: For operations with the same priority, priority is given from left to right.
Comparison Operations
| Operation | Meaning |
| == | Equals |
| <> | Not Equal |
| >= | Greater or Equal |
| <= | Less or Equal |
| > | Greater than |
| < | Less than |
Logical Operations
| Operation | As Command | Computer Symbol |
| And | And | && |
| Or | Or | || |
| Not | Not | ! |
Operation precedence in logical operations
- Those inside parentheses
- Not
- And
- Or
It is ordered as such.


Yorum Gönder