[prev] 10 [next]

Pseudocode (cont)

Control flow
  • if then [else] end if
  • while .. do end while
    repeat until
    for [all][each] .. do end for
Function declaration
  • f(arguments):
        Input
        Output
       
Expressions
  • =    assignment
  • =    equality testing
  • n2   superscripts and other mathematical formatting allowed
  • swap A[i] and A[j]   verbal descriptions of simple operations allowed