Write a program that reads two matrices of integers. It then generates the sum and difference of the two matrices.
The sum of the two matrices of the same size is a matrix with elements that are the sums of the corresponding elements of the two given matrices. Addition is not defined for matrices of different sizes.
If A and B are matrices of the same size, then we define subtraction as follows: A – B = A + (-B). Thus, to subtract matrix B from matrix A, we simply subtract corresponding elements.
Already registered? Login
Not Account? Sign up
Enter your email address to reset your password
Back to Login? Click here