Question: Write a C++ program to implement a function named Fen, the function receives 2-D array of integers, the number of rows, and the number of
Write a C++ program to implement a function named Fen, the function receives 2-D array of integers, the number of rows, and the number of columns. This function prints the average of each row in the 2D array. void Fcn (int a[][3], const int r, const int c); 5 3 3 8 6 9 4 Example: The function will print: 5.3333 6.3333 3.3333 7 1 2 In your main do the following: Create 2-D array of integer of size (3x 3) and initialize it as in the figure above. Call Fen Function
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
