Algorithm Constructs
Pseudocode is a method of writing down an algorithm.
Pseudocode does not use the syntax of any particular
programming language but it does show the structure of a solution.
It is important that 'blocks' and loops are
indented to show the structure clearly.
There are not really any conventions
used in pseudocode but I would suggest using the following:
- For any input/output, use...
input (mark)
output (totalmark)
- use appropriate variable
names,...
- use = to assign values...
counter = 0
|