write the code using c also i need the answer with commonet to understant them c
ID: 3638285 • Letter: W
Question
write the code using c
also i need the answer with commonet to understant them
commmeneded code
Problem 2: Write a program that does the following matrix arithmetic: addition, subtraction, transpose and multiplication. In function main do the following Declare 3 10x10 2-D integer arrays (A, B, and Result) Get the dimension of the 2 matrices from the user (the 2 matrices have the same size and they are square matrices) Get the values of the 2 matrices from the user i row at a time Call function prin rix to matrix A Call function printMatrix to matrix B Call function matrixAddition to find the addition of the 2 matrices Call function printMatrix that prints the result of the addition to screen Call function matrixsubtraction to find the subtraction of the 2 matrices (A-B) Call function printMatrix that prints the result of the subtraction to screen Call function matrixsubtraction to find the subtraction of the 2 matrices (B-A) Call function prin rix that prints the result of the subtraction to screen Call function matrixMultiplication to find the multiplication of the 2 matrices (A B) Call function prin rix that prints the result of the multiplication to screen Call function matrixMultiplication to find the multiplication of the 2 matrices (B A) Call function printMatrix that prints the result of the multiplication to screen Call function matrixTranspose to find the transpose of A Call function printMatrix that prints the result to screen Call function matrixTranspose to find the transpose of B Call function printMatrix that prints the result to screenExplanation / Answer
matrix addition #include #include #include void main() { int a[4][4],b[4][4],c[4][4],i,j; printf("enter the elements of matrix a"); for(j=0;jRelated Questions
Navigate
Integrity-first tutoring: explanations and feedback only — we do not complete graded work. Learn more.