subroutine

A set of instructions within a computer program designed to perform a frequently used operation.