Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions Sorting/Insertion Sort.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ using namespace std;
int main()
{
int n;
cout << "\nEnter the length of your array : ";
cout << "\nEnter the size of your array : ";
cin >> n;
int Array[n];
cout << "\nEnter any " << n << " Numbers for Unsorted Array : ";
Expand All @@ -25,7 +25,7 @@ int main()
while (j >= 0 && temp < Array[j])
{
Array[j + 1] = Array[j];
j--;
j=j-1;
}
Array[j + 1] = temp;
}
Expand Down