Functions

A function is a sub program that returns a single piece of information. This makes it useful for mathematical operations as well as validation of inputs.

There two types of function

  • Predefined functions are built into the language. i.e.  Sin,Cos,Tan…
  • User Defined functions are created by the programer to aid in execution of a program.