From 4ff86897b1b6f764b8841ab7a372565c37a04dc3 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Emre=20Do=C4=9Fan?= Date: Wed, 26 Sep 2018 00:19:09 +0300 Subject: [PATCH] n is now taken as an input. --- Sorting/Insertion Sort.cpp | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/Sorting/Insertion Sort.cpp b/Sorting/Insertion Sort.cpp index 45e860dde..f449ecb77 100644 --- a/Sorting/Insertion Sort.cpp +++ b/Sorting/Insertion Sort.cpp @@ -6,8 +6,10 @@ using namespace std; int main() { int n; + cout<<"\nEnter the length of your array : "; + cin>>n; int Array[n]; - cout<<"\nEnter any 6 Numbers for Unsorted Array : "; + cout<<"\nEnter the Numbers for Unsorted Array : "; //Input for(int i=0; i