Skip to content
Snippets Groups Projects
Commit 90017c70 authored by Rudi Buss's avatar Rudi Buss
Browse files

Update Exercise 5 - Sort.txt

parent bddfb1da
No related branches found
No related tags found
No related merge requests found
Given is the following program:
#include <iostream>
#include <cstdlib>
using namespace std ;
using namespace std;
void sort (int);
int main ( void )
int main ()
{
int a [10], i;
int a [10], i;
cout << "Unsorted Array : " << endl;
for ( i =0; i <10; i ++)
{
a [i]= rand()%100;
cout << a [i] << " ";
}
cout << "Unsorted Array : " << endl;
for ( i =0; i <10; i ++) {
a [i]= rand()%100;
cout << a [i] << " ";
}
cout << endl;
cout << endl;
cout << "Sorted Array : " << endl;
for ( i =0; i <10; i ++)
cout << a [i] << " ";
cout << endl;
cout << "Sorted Array : " << endl;
for ( i =0; i <10; i ++)
cout << a [i] << " ";
cout << endl;
system("pause");
return 0;
return 0;
}
void sort(int x)
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment