diff --git a/Insertion Sort C++ b/Insertion Sort C++ new file mode 100644 index 00000000..a4021ef7 --- /dev/null +++ b/Insertion Sort C++ @@ -0,0 +1,32 @@ +//Insertion Sort +#include +#include +void insertion_sort(int[],int); +void main() +{clrscr(); +int const size=5; +int a[5],i; +cout<<"Enter values for array elements: "<>a[i]; +cout<<"Entered values of array elements before sorting are: "<=0)) +{a[j+1]=a[j]; +j--; +} +a[j+1]=temp;} +cout<<"The sorted values of array elements are: "<