#include <iostream>
usingnamespace std;
int main()
{
int array[10];
for ( int i = 0 ; i < 10 ; ++i )
{
cout<<i<<" value is: ";
cin>>array[i];
}
cout<<"\nSorting your array...\n";
for ( int i = 0 ; i <= 9 ; ++i )
{
for ( int j = i + 1 ; j <= 9 ; ++j )
{
if ( array[i] > array[j] )
{
int temp = array[i];
array[i] = array[j];
array[j] = temp;
}
}
}
for ( int i = 0; i < 10 ; ++i )
{
cout<<array[i]<<"\n";
}
system("pause");
return 0;
}