From d19555332e1f26d914be50ba16fdc865bdb23203 Mon Sep 17 00:00:00 2001 From: Saksh8 <95751531+Saksh8@users.noreply.github.com> Date: Sat, 8 Oct 2022 19:45:22 +0530 Subject: [PATCH 1/2] Create Even or Odd c++ code to check if a number is odd or even --- Even or Odd | 14 ++++++++++++++ 1 file changed, 14 insertions(+) create mode 100644 Even or Odd diff --git a/Even or Odd b/Even or Odd new file mode 100644 index 0000000..251010f --- /dev/null +++ b/Even or Odd @@ -0,0 +1,14 @@ +#include +using namespace std; +int main() +{ int n; + cin>>n; + if(n%2==0) + { + cout< Date: Sat, 8 Oct 2022 20:26:02 +0530 Subject: [PATCH 2/2] Matrix_Multiplication c++ code for multiplying two square matrixes and printing the product --- Matrix_Multiplication | 48 +++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 48 insertions(+) create mode 100644 Matrix_Multiplication diff --git a/Matrix_Multiplication b/Matrix_Multiplication new file mode 100644 index 0000000..cfaddea --- /dev/null +++ b/Matrix_Multiplication @@ -0,0 +1,48 @@ +#include +using namespace std; +int main() +{ + int A[10][10],B[10][10],mul[10][10],r,c,i,j,k; + cout<<"Enter the number of row="; + cin>>r; + cout<<"Enter the number of column="; + cin>>c; + cout<<"Enter the first matrix element=\n"; +for(i=0;i>A[i][j]; + } +} +cout<<"Enter the second matrix element=\n"; +for(i=0;i>B[i][j]; + } +} +cout<<"Multiply of the matrix=\n"; +for(i=0;i