# subroutine

Pronunciation: say "SUB-roo-teen" US /ˈsʌbɹuˌtin/, UK /ˈsʌbɹuːˌtiːn/

## Noun

1. A block of code that the main part of a program calls on to perform a specific task.
   - Simple: A part of a computer program that does one job when the main program asks for it.
   - _The main loop calls a subroutine to check the password before it loads the account._
   - _Moving the tax calculation into its own subroutine made the code much easier to test._

## Origin

Formed from sub- + routine.

Source: DictionaryAI, https://dictionaryai.com/define/subroutine (written from Wiktionary data, CC BY-SA 4.0: https://creativecommons.org/licenses/by-sa/4.0/).
