Calculate Average

In this example, I used the return to return theAvg. In this case it will be recognized outside the function.