Question: 4. Write a C program to input the elements of two 3 x 3 matrices, store them in arrays A, B and perform the following

 4. Write a C program to input the elements of two

4. Write a C program to input the elements of two 3 x 3 matrices, store them in arrays A, B and perform the following matrices operations and store the results in arrays C and D respectively. a) C = A + B b) D = AT - B Your output should displays matrices A, B, C and D, as follows. input elements of matrix A 1 2 1 3 2 1 4 1 2 input elements of matrix B 3 3 2 1 2 2 1 2 4 A- 1 2 1 3 2 1 4 1 2 B= 3 3 2 1 2 2 1 24 C-A+B= 4 5 3 4.43 5 36 D-AT-B- -2 -1 -1 2 0-1 3 -1 -2 [7 Marks]

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 Databases Questions!