Concept Flow - Function vs procedure decision
Start: Need to perform a task
Is a return value needed?
Yes→Use Function
No
Is it a complex operation or multiple steps?
Yes→Use Procedure
No
Use Procedure
Decide between function and procedure by checking if a return value is needed and the complexity of the task.
