Question: Write a C++ program that includes a void function called find_average that takes an integer array of size 5 as a parameter and calculates
Write a C++ program that includes a void function called "find_average" that takes an integer array of size 5 as a parameter and calculates the average of the elements in the array. In the "main" function, declare an integer array of size 5 and initialize it with arbitrary values. Call the "find_average" function with the integer array as a parameter, and then print out the average to the console.
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
