4.1.1.10 Subroutines (Procedures/ Functions)

To meet this objective, you should be able to

An easy way to tell the difference between a Procedure and a Function is to look at the names:

Fundamentals Topic 5 Subroutines.pptx
L1 Procedures and functions
L2 Functions and procedures

Parameter or argument?

A parameter is the variable listed inside the parentheses in the function definition. (See line 1)

An argument is the value that are sent to the function when it is called. (See line 5)

Check out the code