Why write the same instructions again and again?
Large programs often repeat the same task, such as displaying a menu, checking a password or calculating a total.
A subroutine stores the instructions for one task under a name. The program can then call that name whenever the task is needed.