Difference between revisions of "Subroutines - Functions"

From TRCCompSci - AQA Computer Science
Jump to: navigation, search
m
Line 1: Line 1:
=Subroutine=
+
=Subroutines=
 
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.
  

Revision as of 13:34, 15 December 2016

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.