From 622cab67e3a9b097c9027d8efb8639c20948795f Mon Sep 17 00:00:00 2001 From: Hardik-Ghori <71206635+Hardik-Ghori@users.noreply.github.com> Date: Fri, 2 Oct 2020 21:40:19 +0530 Subject: [PATCH 1/2] Update HELLo.cpp --- HELLo.cpp | 1 + 1 file changed, 1 insertion(+) diff --git a/HELLo.cpp b/HELLo.cpp index 6ac347e..f3f0b1c 100644 --- a/HELLo.cpp +++ b/HELLo.cpp @@ -3,5 +3,6 @@ using namespace std; int main() { cout<<"Hello Folks"; + cout<<"This is Dev"; return 0; } From 3480d5002e2e7a0cb1cedcd655a4a24abf0fece4 Mon Sep 17 00:00:00 2001 From: Hardik-Ghori <71206635+Hardik-Ghori@users.noreply.github.com> Date: Thu, 22 Oct 2020 22:12:56 +0530 Subject: [PATCH 2/2] Create InsertionSort.cpp --- InsertionSort.cpp | 35 +++++++++++++++++++++++++++++++++++ 1 file changed, 35 insertions(+) create mode 100644 InsertionSort.cpp diff --git a/InsertionSort.cpp b/InsertionSort.cpp new file mode 100644 index 0000000..aa6312a --- /dev/null +++ b/InsertionSort.cpp @@ -0,0 +1,35 @@ +#include +using namespace std; + +int main() +{ + int i,j,n,key; + int a[30]; + + cout<<"--------------------INSERTION SORT------------------\n\n"; + cout<<"enter the size of the array\n"; + cin>>n; + cout<<"\n enter elemnts in array"; + for(i=0;i>a[i]; + } + for(j=2;j0 && a[i]>key) + { + a[i+1]=a[i]; + i=i-1; + a[i+1]=key; + + } + + } + for(i=0;i