Difference between revisions of "Subroutines - Functions"
Daddy Scarce (talk | contribs) |
Daddy Scarce (talk | contribs) |
||
Line 2: | Line 2: | ||
A set of instructions designed to perform a frequently used operation within a program. This makes it easy to repeat code. | A set of instructions designed to perform a frequently used operation within a program. This makes it easy to repeat code. | ||
− | + | === Example === | |
− | [[File:Sub. | + | [[File:Sub.PNG]] |
+ | |||
+ | Every time greeting() is written the program runs the greeting subroutine. |
Revision as of 12:34, 15 December 2016
Subroutine
A set of instructions designed to perform a frequently used operation within a program. This makes it easy to repeat code.
Example
Every time greeting() is written the program runs the greeting subroutine.