Professional Documents
Culture Documents
A Couple Is an-WPS Office
A Couple Is an-WPS Office
int main()
int n, i;
cout<<"Enter the number of data element to be sorted: ""\n(Break with any
letter)"<<endl;
if(!(cin>>n))
{cout << "\nInvalid input!\nThe program will shutdown if continued" << endl;}
else
{
int arr[n];
for(i = 0; i < n; i++)
{
MergeSort(arr, 0, n-1);
return 0;
}
endOfLoop2:
{cout << "\nInvalid input!" << endl;}
cout<<"\nMERGE SORT AGAIN NEXT TIME \n an error was found\nthe program
will shutdown if continued ";
return 0;
}
}