Subroutines or Functions Which Should You

Create a subroutine when you...

• Want to perform some actions.

• Want to display a message on the screen. Create a function when you.

• Want to perform a simple calculation more than once.

• Must perform complex computations.

• Must call the same block of instructions more than once.

• Want to check if a certain expression is true or false.

Part I

0 0

Post a comment