GCSE Computer Science/Subroutines

From Wikibooks, open books for an open world
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigation Jump to search

When people start writing programs they often repeat the same lines of code at several places in a program. We can avoid this by using subprograms. Subprograms also called subroutines, functions or procedures.