How can i sort this array pls..
#include<iostream>
#include<algorithm>
using namespace std;
int prompt(int x[]);
void printreverse(int x[]);
int main()
{
int x[5];
prompt(x);
printreverse(x);
system("pause");
return 0;
}
int prompt(int x[])
{
for(int i=0;i<5;i++)
{
cout <<"Enter integers:";
cin >>x[i];
}
}
void printreverse(int x[])
{
for(int i=0;i<5;i++)
{
cout <<x[i]<<" ";
}
cout <<endl;
}