#include
#defineN15
intmain()
{inta[N]={5,6,2,1,9,0,3,7,89,34,76,89,93,57,34},i,j,t; //数组已有N个数据
for(i=0;i
{t=a[j];a[j]=a[j+1];a[j+1]=t;}
for(i=0;i
printf("\n");
return0;
}
#include
#defineN15
intmain()
{inta[N]={5,6,2,1,9,0,3,7,89,34,76,89,93,57,34},i,j,t; //数组已有N个数据
for(i=0;i
{t=a[j];a[j]=a[j+1];a[j+1]=t;}
for(i=0;i
printf("\n");
return0;
}