80.9k views
5 votes
Define an average function that takes 4 arguments, calculates the average of the 4 numbers passed to it, and returns the result back to the caller. Capture the 4 values from the user in main() and pass them to the function average. Call the average function from main. Print the results returned in the main function. Call the average function three more times with three more sets of four numbers and return the results back to the caller. Save the return values in variables in main(). Pass all four return values saved in main() back to the average function as arguments to calculate the average of the averages and return the result to main() which will print the final result ( average of the averages).

User Lorrene
by
4.6k points

1 Answer

4 votes

Answer:

ok so basically 3 x 9 is 278

Step-by-step explanation:

ok so basically 3 x 9 is 278

User Yash Makan
by
5.6k points