Please enable JavaScript.
Coggle requires JavaScript to display documents.
Subroutines - Coggle Diagram
Subroutines
-
-
subroutine/subprogram
A subroutine is a subtask within a program
The code for a subroutine needs to be written before the code for the main program is written - this is called defining a subroutine
Once defined, subroutines can then be requested or called by the main programme when they are needed
-
-
-
Function
A subroutine that does something and returns a value (often the result of a calculation) - this value can then be used in the main program
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-