In this example I defined theAns outside the function which made it global. I defined
theAvg inside the function and then assigned the results to theAns as I left the function.
Since it is global I can then see it.
Note that when I define the variables as I did, outside the function, I do not need to
pass. Preferred methodology is to pass. In fact, usually you use separate names to
maintain the integrity of the data.