Professional Documents
Culture Documents
#include <stdio.h>
#include <stdlib.h>
void main()
{
/* Function declarations */
void readmatA();
void printmatA();
void readmatB();
void printmatB();
void sum();
void diff();
sum();
diff();
}
} /* main() */
/*---------------------------------------------------
Output
Enter the order of the matrix A
2 2
Enter the order of the matrix B
2 2
Enter the elements of matrix A
1
2
3
4
MATRIX A is
1 2
3 4
Enter the elements of matrix B
2
4
6
8
MATRIX B is
2 4
6 8
Sum matrix is
3 6
9 12
Difference matrix is
-1 -2
-3 -4
-----------------------------------------------------*/