main()
{
int a [11];
int i,j,t;
printf("input 10 number:\n");
for(i = 1;i<11;i++)
scanf("%d',&a[i]);
for(j = 1;j<=9;j++)
for(i = 1;i<=10-j;i++;)
if(a[i]>a[i+1])
{t = a[i];a[i] = a[i+1];a[i+1] = t;}
printf("the sorted numbers :\n");
for(i = 1;i<11;i++)
printf("%d",a[i]);
getch();
很简单的冒炮,错误?