Rules of writing a subprocedure are:
- A sub may use multiple expressions or give multiple results.
- A sub is called in the main module using a CALL statement.
- As PRINT is the part of the sub module itself the result of the sub cannot be assigned to the sub name.
- A sub name cannot contain a dollar sign.