# Exercises. Addition and subtraction of matrices

You can add and subtract matrices of same size, as result you get a matrix of the same size.

**Addition of matrices** (**sum of matrices**) **A** + **B** is the operation of finding the matrix **C**, all of whose elements are equal to the sum of pairwise all relevant elements of the matrices **A** and **B**, that is, each element of the matrix **C** is

_{i,j}= a

_{i,j}+ b

_{i,j}

**Subtraction of matrices** (**difference of matrices**) **A** - **B** is the operation of finding the matrix **C**, all of whose elements are pairwise differences of all relevant elements of the matrices **A** and **B**, that is, each element of the matrix **C** is

_{i,j}= a

_{i,j}- b

_{i,j}

Exercises. Addition of two matrices (sum of matrices) and the subtraction of two matrices (difference of matrices).

Given two matrices **A** and **B**:

A = | 19 |
-17 |
-17 |
||

-5 |
-18 |
-11 |
|||

-18 |
-20 |
-13 |
|||

B = | 16 |
20 |
20 |
||

-17 |
-19 |
-6 |
|||

-7 |
-6 |
-11 |
|||

Select the size of the matrix **С**:

Number of rows:

Number of columns:

C = | ... |

*Add the comment*