Write a template for a function called total. The function should keep a running
total of values entered by the user, then return the total. The argument sent into the
function should be the number of values the function is to read. Test the template in a
simple driver program that sends values of various types as arguments and displays
the results
Comments
Leave a comment