#include<iostream>
using namespace std;
int ordina (int i, int N, int a[10]){
for(i=0;i<N;i++)
cin>>a[i];
return a[i];
}
int main()
{
int N=10; //numero di array
int a[N],i,j,temp,k,x;
cout<<"Inserisci gli elementi"<<endl;
do {
k=0;
for(i=0;i<N-1;i++)
if(a[i]>a[i+1])
{
temp=a[i];
a[i]=a[i+1];
a[i+1]=temp;
k=1;
x=i+1;
}
N=x;
} while (k==1);
N=10;
for(i=0;i<N;i++)
cout<<" "<<a[i];
return 0;
}