CSharp Matrix Substraction Program Using arrays with output

This C#.net program is about Matrix Substraction with output and source code.This matrix substraction program with output and source code is shown below. Matrix substraction program is compiled and executed using microsoft visual studio.

Matrix substraction program Logic:

First we declare two integer variable row and columns to store the matrix dimensions entered by user

Declare three two dimensional arrays to store matrixA, matrixB and matrixC

Read matrix A using for loop and store it in array matrixA[row,columns]

Read matrix B using for loop and store it in array matrixB[row,columns]

Perform sum of matrix A and matrix B using for loop and store it in array matrixC[row,columns]using matrixC[j, k] = matrixA[j, k] - matrixB[j, k];

show content of matrixA , matrixB and matrixC as substraction of matrixA and matrixB