What are they?
In different programming languages, subroutines are known as:
- Procedure - Routine
- Method - Subprogram
Above is a example
Above this is a flow chart which demonstrates a routine (see right) and a subroutine (see left). In this case, its a lighthouse and the subroutine is blowing a horn if a ship is near.