diff --git a/Addition of two matrices ussing array.cpp b/Addition of two matrices ussing array.cpp new file mode 100644 index 0000000..56f3de2 --- /dev/null +++ b/Addition of two matrices ussing array.cpp @@ -0,0 +1,59 @@ +/* C++ Program to Add Two Matrices using array */ + +#include +using namespace std; + +int main() +{ + + int arr1[5][5], arr2[5][5], arr3[5][5], sub, i, j,m,n; + + cout<<"Enter size of matrix ( Max:5 ) :: "; + cin>>m; + cout<<"\nEnter Elements to Matrix A Below :: \n"; + + for(i=0;i>arr1[i][j]; + } + + } + + cout<<"\nEnter Elements to Matrix B Below :: \n"; + + for(i=0;i>arr2[i][j]; + } + + } + + + cout<<"\nAdding Matrix ( A + B ) ..... \n"; + for(i=0; i