Lab Exercise on Functions
The purpose of this exercise is to practice on using
user defined value returning functions
Write a C++ program that asks the user to enter five integer marks and find out the average of the five marks.
Please note that you will pass the five marks to a function called
AVG(int, int, int, int, int)
to calculate the average and return the average to the calling function, the main() function.
Print out the average in the main() function.
Compile and run the C++ program.
Show the program output to your lab instructor.
Copyright: Department of Computer Science, University of Regina.