Pseudocodes Notations
Pseudocodes Notations
Variable names
Assigning a value to a
variable
Output of information
Symbol
Definition
Examples
is equal to
X = 4, X = K
If X = 4
>
is greater than
X>4
if X > 4 then
>=
X >= 6
<
is less than
VALUE[Y] < 7
<=
VALUE[] <=12
not equal to
X 4, X K
AND
logical AND
A AND B
OR
logical OR
A OR B
NOT
logical NOT
NOT A
if NOT X = 7 then
mod
modulo
15 mod 7 = 1
div
15 div 7 = 2
Operation
Flowchart example
Pseudocode example
sequential
operations
perform task1
perform task1
perform task2
perform task2
conditional
operations
NO
MAX > 0?
YES
output positive
output positive
else
output not positive
end if
while-loop
YES
COUNT = COUNT + 1
NO
from/to-loop
COUNT = 0
loop COUNT from 0 to 5
SUM = SUM + COUNT
COUNT = COUNT
COUNT > 5?
YES
+1
NO