3rd call of function

Added a third call for the function and the process ran three times,
each time displaying the correct calculation based on user input in the
console