Function

A function is used to modularize a program. In this way, we can divide a program into several parts. Each function performs a defined task in its structure.

  1. Function type: defines the return type of the function
  2. Function name: sets the function name.
  3. Add parameter: adds a new parameter to the function
  4. Parameter type: sets the name of the parameter.
  5. Parameter name: defines the parameter name