大小排序
# include "stdio.h"int main()
{
int n,b[10000],
int i,j,a;
printf("please input n integer:\n");
scanf("%d",&n);
printf("please input %d integer:\n",n);
for(i=0;i<n;i++)
scanf("%d",&b[i]);
for(j=0;j<n;j++)
for(i=0;i<n-j-1;i++)
if(b[i]>b[i+1])
{
a=b[i];
b[i]=b[i+1];
b[i-1]=a;
}
for (i=0;i<n;i++)
printf("%d",b[i]);
}
有错误,麻烦指导一下