Using the pseudo code

It is recommended that all programmers use the same conventions for the pseudo code. For a mathematical description of the algorithm, the algorithm needs to be written exactly as it would appear in an article. Use superscripts and subscripts for upper and lower indices respectively.


Provide clear translations for unavailable symbols, for example sqrt (square root) or sum (sum).


The structures used are those resembling a structural diagram, except that indentations are used instead of lines. An alternative is Jackson Structured Programming (JSP), but its readability is slightly less than that of a structural diagram.
The three control structures result in:



The SWAN team 2022-08-10