#include <stdio.h>
#include <stdlib.h>
int main(int* argc, char* argv[])
{
int a[10] = { 2,8,6,3,4,7,9,12,1,0 };
for (int i = 0; i < 10; i++)
{
for (int j = i + 1; j < 10; j++)
{
if (a[i] > a[j])
{
int temp = a[i];
a[i] = a[j];
a[j] = temp;
}
}
}
for (int i = 0; i < 10; i++)
{
printf("%d\n",a[i]);
}
return 0;
}