A pre-test loop is one in which the condition is tested before the code block is executed.
This means that the code block may never be executed.
The steps that take place in a pre-test loop are:
A post-test loop is one in which the condition is tested after the code block is executed.
This means that the code block will always execute at least once.
The steps that take place in a post-test loop are: