From a9770e8ed7e83667a7c982a9ab760faaeb611853 Mon Sep 17 00:00:00 2001 From: SAURABH SHEKHAR <42865533+SaurabhShekhar161@users.noreply.github.com> Date: Sun, 7 Oct 2018 00:40:53 +0530 Subject: [PATCH 1/3] Update multiplymatrix.cpp Output messages added for user convince, some {} removed as the statements were under the default scope of condition statements --- multiplymatrix.cpp | 25 ++++++++++--------------- 1 file changed, 10 insertions(+), 15 deletions(-) diff --git a/multiplymatrix.cpp b/multiplymatrix.cpp index c1d6273..6c4dd1b 100644 --- a/multiplymatrix.cpp +++ b/multiplymatrix.cpp @@ -7,45 +7,40 @@ int main() cin>>n; - int a[n][n] , b[n][n],c[n][n],sum=0; - + int a[n][n],b[n][n],c[n][n],sum=0; + cout<<"\nEnter value in 1st matrix\n"; for(int i=0;i>a[i][j]; } - } cout<<"\n"; - for(int i=0;i>b[i][j]; } - } - cout<<"\n"; - for(int p=0;p Date: Sat, 13 Oct 2018 13:21:20 +0530 Subject: [PATCH 2/3] Update multiplymatrix.cpp --- multiplymatrix.cpp | 20 ++++++++++---------- 1 file changed, 10 insertions(+), 10 deletions(-) diff --git a/multiplymatrix.cpp b/multiplymatrix.cpp index 6c4dd1b..cd8e116 100644 --- a/multiplymatrix.cpp +++ b/multiplymatrix.cpp @@ -7,39 +7,39 @@ int main() cin>>n; - int a[n][n],b[n][n],c[n][n],sum=0; + int a[n][n],b[n][n],c[n][n],sum=0,i,j,p; cout<<"\nEnter value in 1st matrix\n"; - for(int i=0;i>a[i][j]; } cout<<"\n"; cout<<"Enter value in 2nd matrix\n"; - for(int i=0;i>b[i][j]; } cout<<"\n"; - for(int p=0;p Date: Sat, 13 Oct 2018 13:22:37 +0530 Subject: [PATCH 3/3] Update multiplymatrix.cpp --- multiplymatrix.cpp | 3 --- 1 file changed, 3 deletions(-) diff --git a/multiplymatrix.cpp b/multiplymatrix.cpp index cd8e116..aaebb7b 100644 --- a/multiplymatrix.cpp +++ b/multiplymatrix.cpp @@ -1,7 +1,4 @@ #include -using namespace std; - - int main() { int n;