Subroutines - Functions

From TRCCompSci - AQA Computer Science
Revision as of 13:34, 15 December 2016 by Daddy Scarce (talk | contribs)
Jump to: navigation, search

Subroutines

A set of instructions designed to perform a frequently used operation within a program. This makes it easy to repeat code.

Example

File:Sub.PNG

Every time greeting() is written the program runs the greeting subroutine.