I am new in programming. I have this problem in coding. i somehow have the idea but i could not simply do it in codes. can anyone add to complete my program.
The problem is I enter 10 numbers and i need to sort them ascendingly.
#include<iostream>
using namespace std;
int main()
{
int n[10],i;
cout<<"Enter 10 Numbers: ";
for(i=0;i<10;i++)
cin>>n;
system("pause>0");
}
I do not know the proceeding codes. can anyone help me to figure this out?
It would be a big help thanks in advance!
Edited:
Ok, just getting the set of numbers. Example, i entered 10 numbers
1
2
3
4
4
4
5
1
1
2
Output:
The set of number: {1,2,3,4,5}
how to get that?