Subroutines can be used repeatedly without having to be rewritten each time they are used.
subroutines
Yes.
Peter J Johnson has written: 'FORTRAN subroutines for VAX/VMS block I/O' -- subject(s): Subroutines (Computer programs), FORTRAN (Computer program language)
Subroutines are code blocks that can be called from anywhere in your code where the subroutine is within the scope of the caller. They are not used in batch files or command scripts, but they may be emulated by calling one batch file from another and waiting for the external call to return, which may (optionally) return an error level which can be tested by the caller. Subroutines can be used in other scripts, including vbscript and javascript. Subroutines may also be called functions or procedures depending on the type of script.
Classes Structures Subroutines Functions
S. Marlow has written: 'Fortran subroutines for the solution of linear equations, inversion of matrices and evaluation of determinants' 'Fortran subroutines for the solution of linear equations' 'Flexible specialisation and the large enterprise'
Subroutines can be used for a set calculation, for instance adding 10 years to today or to return how many seconds have passed since 3.75 hours ago or an APR rate of a specified dollars amount.
A function is essentially a subroutine that is ment to be used by other subroutines.
subroutines procedures functions or methods
Anne P. Ladd has written: 'Subroutines reference guide'
modules