Common pseudocode terms
1.1 counting
Counting in 1s is quite simple; use of the statement count = count + 1 will
enable counting to be done (e.g. in controlling a repeat loop). The statement
literally means: the (new) count = the (old) count + 1
It is possible to count in any increments just by altering the numerical value in
the statement (e.g. count = count – 1 counts backwards)
1.2 totalling
To add up a series numbers the following type of statement should be used:
total = total + number
This literally means (new) total = (old) total + value of number
1.3 input/output
Input and output indicated by the use of the terms input number, output total, print total, print “result is” x and so on.
1.4 branching
There are two common ways of branching:
case of ….. otherwise …… endcase
if ….. then ….. else ….. endif