what are subroutines in programming?
In computer programming, a subroutine is a sequence of program instructions that performs a specific task, packaged as a unit. ... In different programming languages, a subroutine may be called a procedure, a function, a routine, a method, or a subprogram. The generic term callable unit is sometimes used.