I need to write array and sort array elements from low to hight number.
This is what I have done, but dont have a clue how sort numbers by growing numbers..
This is what I have done... I am using dev C++
[code]
[#include <iostream>
using namespace std;
int main()
{
int n;
cout << "enter size of array" << endl;
cin >> n;
int b[n];
cout << "enter number elements:"<< endl;
for(int i = 0; i < n;i++)
{
cin >> b[i];
}
cout << endl << endl; //SO WHATS NEXT ? HOW TO SORT THEM ?