n is now taken as an input.

This commit is contained in:
Emre Doğan
2018-09-26 00:19:09 +03:00
committed by GitHub
parent aead0ba366
commit 4ff86897b1

View File

@@ -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<n; i++)