Please enable JavaScript.
Coggle requires JavaScript to display documents.
Procedures and Functions (Benefits of using Procedures and Functions…
Procedures and Functions
-
Procedures
procedures consist of a heading, a declaration part and an action part. they are activated by a call from the main program. when a procedure is called it produces an effect.
-
Functions
As well as pre-defined functions such as random, round and length; we can also write our own functions.
functions consist of a heading, a declaration part and an action part. a function is activated by a call from the main program. a function returns a single value.
-
Parameters
Formal
Formal parameters are used as placeholders within a subprogram for the values received or sent to the main program's actual parameters
-
-