Subroutine— definition, example and pronunciation in USA and UK English

Noun (thing)
Subroutine
an independent block of code separate from the main program, which performs a specific task necessary to the program
The Pascal software program was buggy due to an incorrectly performing subroutine.