#include
void main()
{
int n,i,j,t,a[10000];
printf("请指竖稿输入正整数N:");
scanf("%d",&n);
printf("请依次纤握输入%d个数",n);
for(i=0;i
printf("请输入第%d个数",i+1);
scanf("%d",&a[i]);
}
for(j=0;j
{
t=a[i];
a[i]=a[i+1];
a[i+1]=t;
}
printf("排序后数组为");
for(i=0;i
}
#include
int main()
{int n,i,j,t,a[200];
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(i=0;i<简哗n;i++) printf("敏模%d ",a[i]); printf("\n"); return 拦拿行0; }
#include
int main()
{ int n,a[n],i,j,t;
printf("please input a number:");
scanf("%d",&n);
for(i=0;i
scanf("%d",&a[i]);}
for(j=0;j
{ t=a[i];
a[i]=a[i+1];
a[i+1]=t;
}
printf("消谈the sorted numbers:\n");
for(i=0;i
printf("\n");
return 0;
}
有些中文毕桥衫符号,你改下,没有试过机。