It is important to read and understand a formal language. Declaring variables and data types, using selection statements, iteration and using operators are comprehensions required before coding.
Subprograms are either procedures or functions and will usually make use of parameters. The parameters appear within brackets beside the name of the procedure.
Procedure
This is an example of a procedure and includes parameter passing.