#include
int main()
{int n,i,j,t,a[20];
scanf("%d",&n);
for(i=0;i scanf("%d",&a[i]); for(i=0;i {for(j=0;j if(a[j]>a[j+1]) {t=a[j];a[j]=a[j+1];a[j+1]=t;} for(j=0;j printf("%d,",a[j]); printf("%d\n",a[j]); } return 0; }
#include
int main()
{int n,i,j,t,a[20];
scanf("%d",&n);
for(i=0;i scanf("%d",&a[i]); for(i=0;i {for(j=0;j if(a[j]>a[j+1]) {t=a[j];a[j]=a[j+1];a[j+1]=t;} for(j=0;j printf("%d,",a[j]); printf("%d\n",a[j]); } return 0; }