using the Console to display the total of the Array