diff --git a/Subtraction of two matrices using arrays.cpp b/Subtraction of two matrices using arrays.cpp new file mode 100644 index 0000000..443e06c --- /dev/null +++ b/Subtraction of two matrices using arrays.cpp @@ -0,0 +1,59 @@ +/* C++ Program to Subtract 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<<"\nSubtracting Matrix ( A - B ) ..... \n"; + for(i=0; i