Professional Documents
Culture Documents
Sample 2
Sample 2
summonbutler
END
SUB summonbutler
END SUB
on the screen. Subroutines can be as complex as the main section of the program and can
contain there own declarations and even their own subroutines. The main use of
subroutines is to break down a program into smaller more manageable sections. They are
particularly useful when you wish to perform the same function more than once as they
can save a lot of typing. Subroutines and their uses will be described in more detail later.