From 83380b3fcc667c0a6432e6f6dad520a4c20f1955 Mon Sep 17 00:00:00 2001 From: nainaagarwal11 Date: Fri, 17 May 2024 00:58:12 +0530 Subject: [PATCH 1/4] basic array code --- Arrays/Arrays.md | 22 +++++++++++++++++++++- 1 file changed, 21 insertions(+), 1 deletion(-) diff --git a/Arrays/Arrays.md b/Arrays/Arrays.md index d4182fb..c414030 100644 --- a/Arrays/Arrays.md +++ b/Arrays/Arrays.md @@ -1 +1,21 @@ -## Arrays \ No newline at end of file +## Arrays +## basic array code using c++ + +#include +using namespace std; +int main() +{ +int size,arr[100]; +cout<<"enter the size of the array"<>size; +cout<<"kindly enter the elements"<>arr[i]; +} +for(int i=0;i Date: Sat, 18 May 2024 01:06:18 +0530 Subject: [PATCH 2/4] max num in an array --- Arrays/max number | 0 1 file changed, 0 insertions(+), 0 deletions(-) create mode 100644 Arrays/max number diff --git a/Arrays/max number b/Arrays/max number new file mode 100644 index 0000000..e69de29 From f1de41ef0615128f4f151d84b422669e86b27cfe Mon Sep 17 00:00:00 2001 From: nainaagarwal11 Date: Sat, 18 May 2024 01:22:04 +0530 Subject: [PATCH 3/4] max num --- Arrays/max number | 25 +++++++++++++++++++++++++ 1 file changed, 25 insertions(+) diff --git a/Arrays/max number b/Arrays/max number index e69de29..1f654f4 100644 --- a/Arrays/max number +++ b/Arrays/max number @@ -0,0 +1,25 @@ +#include +using namespace std; +int main() +{ +int size,arr[100]; +int max=0; +cout<<"enter the size of the array"<>size; +cout<<"kindly enter the elements"<>arr[i]; +} +cout<<"now find the maximum number"< Date: Sat, 18 May 2024 01:47:48 +0530 Subject: [PATCH 4/4] array --- Arrays/Arrays.md | 26 +++++++++++++++++++++++++- Arrays/max number | 25 ------------------------- 2 files changed, 25 insertions(+), 26 deletions(-) delete mode 100644 Arrays/max number diff --git a/Arrays/Arrays.md b/Arrays/Arrays.md index c414030..e323eed 100644 --- a/Arrays/Arrays.md +++ b/Arrays/Arrays.md @@ -1,7 +1,7 @@ ## Arrays ## basic array code using c++ -#include +#include using namespace std; int main() { @@ -19,3 +19,27 @@ for(int i=0;i +using namespace std; +int main() +{ +int size,arr[100]; +int max=0; +cout<<"enter the size of the array"<>size; +cout<<"kindly enter the elements"<>arr[i]; +} +cout<<"now find the maximum number"< -using namespace std; -int main() -{ -int size,arr[100]; -int max=0; -cout<<"enter the size of the array"<>size; -cout<<"kindly enter the elements"<>arr[i]; -} -cout<<"now find the maximum number"<