Question: Write a function to add two matrices and and save the result in . The header of the function is: const int N = 3

Write a function to add two matrices and and save the result in . The header of the function is:
const int N =3;
void addMatrix(const double a[][N],const double b[][N], double c[][N]);
Each elementis. Write a test program that prompts the user to enter two 3-by-3 matrices and displays their addition.
Sample Run
Enter matrix1: 123456789
Enter matrix2: 02314.52.21.14.35.2
The addition of the matrices is
123024147
456+14.52.2=59.58.2
7891.14.35.28.112.314.2

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Programming Questions!