routine
term used in computer science: either program or subprogram
subroutine
sequence of instructions that can be called from other points in a computer program
computer program
sequence of instructions written in programming language to perform a specified task with a computer