For every problem involving repetition, there are only three parts: a beginning, a middle, and an end. You usually code once for the middle, and call (Ed.: make a function call) for the beginning and end.
Continued at top
Attributed to :: Dale Hanchey
Reference ::
Link ::