Difference between revisions of "Subroutines - Functions"

From TRCCompSci - AQA Computer Science
Jump to: navigation, search
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-
+
=== Example ===
[[File:Sub.png]]
+
[[File:Sub.PNG]]
 +
 
 +
Every time greeting() is written the program runs the greeting subroutine.

Revision as of 13: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

File:Sub.PNG

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