From 876c53694e88c9afff19ac2c7b361993e2bbfd0c Mon Sep 17 00:00:00 2001 From: Monalika Date: Wed, 26 May 2021 19:23:57 +0530 Subject: [PATCH] Create Addition of two matrices ussing array.cpp --- Addition of two matrices ussing array.cpp | 59 +++++++++++++++++++++++ 1 file changed, 59 insertions(+) create mode 100644 Addition of two matrices ussing array.cpp 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