Functions and relationships

A function is a set of lines of code that perform a specific task and can return a value. Functions can take parameters that modify their operation. The functions are used to break down big problems into simple tasks and to implement operations that are commonly used during a program and thus reduce the amount of When a function is invoked, control is passed to it, once it is finished with its task the control is returned to the point from which the function was called.

// regresar el cuadrado de un número
double Cuadrado(double n)
    return n*n;