Program to find Transpose of Matrix in C++

Here is the Program to find Transpose of Matrix in C++ PROGRAM: #include<iostream> using namespace std; int main() { int a[10][10],m,n,i,j; cout<<“Enter number of rows: “; cin>>m; cout<<“Enter number of coloumns: “; cin>>n; if(m!=n) { cout<<“Matrix not square so Transpose not possible :(“; } else { cout<<endl<<“Enter elements of matrix: “<<endl; for(i=0;i<m;i++) { for(j=0;j<n;j++) { cout<<“Enter element a”<<i+1<<j+1<<“: “; cin>>a[i][j];…

Matrix multiplication in C++

How matrix multiplication in C++ Works:   Input two matrices. Run 3 for loops (i,j,k). Multiplication will be addition of First_Matrix[i][k]*Second_Matrix[k][j] for each element. Resultant matrix is stored in third Matrix.   CODE: #include<iostream> using namespace std; int main(){ //Using const int for array size const int row=2,col=2; // if not use const error found cout<<“Size of Matrices : “<<row<<“…

Program to Insert Update and Delete elements in Array in C++

How it Works: This code is managing a small database in array like insert, update and delete integer values in array. Program has global array declaration of size 10. Global declaration allows it accessible inside any function. A function name “Default values” is initializing all array indexes by default value of -1. A function name “Display Array” displays the array…