Functions
What is a Function?
Function: A block of code which only runs when it is called.
You can pass data, known as parameters, into a function.
A function can return data as a result.
If we want to give a value to the function, we will do it in the following way:
There is another method, where the numbers are defined in the function, we will only have to "pass" them to the main operation.
Here, we will place the numbers in the main program, and determine in the function that they are global.