Examples

Here are some example programs, with their flow graphs, to give a flavour of the language and the resulting graphs. Note that in many cases what they demonstrate is that program texts are easier to read than flow graphs. You can click on a flow graph to see the source code.

Boolean expression

4-bit adder

Imperative programming

Conditionals

Function declaration and use

Factorial

Tail recursive factorial

Quick sort

Quick sort partitioning

Previous | Next