2.matrix Addition and Subtraction Using 2-D Array PDF
2.matrix Addition and Subtraction Using 2-D Array PDF
Code:
#include <iostream>
int main()
return 0;
}
Input:
Enter number of rows and columns: 2 2
Enter elements of matrix 1:
12
34
Enter elements of matrix 2:
56
78
Output:
Sum of the matrices is:
68
10 12
Difference of the matrices is:
-4 -4
-4 -4