Subtraction of two matrix – C Program

Subtraction of two matrix – C Program

write a c program to display difference of given two matrix.

The output of subtraction of two matrix is :

Transpose of Matrix – C Program

Transpose of Matrix – C Program

write a c program to convert given matrix to transpose matrix form.

The output of matrix transpose is :

Multiplication of two matrix – C Program

Matrix Multiplication – C Program

write a c program to multiplication of two matrix.

lets understand multiplication of matrix

matrix A=  1    2           matrix B = 5   6   7

.                3    4                           8   9   10

The multiplication of two matrix:

A * B =  1*5  +  2*8          1*6  +  2*9         1*7  + 2*10

.            3*5  +  4*8          3*6  +  4*9         3*7  + 4*10

A * B =  21       24       27

.            47      54        61

The output of matrix multiplication is :

Sum of two matrix – C Program

Sum of two Matrix – C Program

Write a c program for sum two dimensional matrix

Sum of two matrix – we enter elements of first matrix and then enter elements of second matrix, then sum of two matrix by position of row and columns of elements.

The output of sum of two matrix is:

Print Matrix 2 Dimensional array – C Program

Input Matrix C Program

Write a c program for input 2 dimensional array matrix.

Is we are talking about 2 dimensional array, then the matrix is the best example of two dimensional array. For input matrix we have to consider row size and column size of matrix.

The matrix c program out put is :