# include <stdio.h>//数组倒置
int main()
{
int a[10] ;
int i, j, t;
for (i=0;i<10;i++ )
{
a[i] = i;
printf("%3d", a[i]);
}
printf("\n");
i = 0;
j = 9;
while (i<j)
{
t=a[i] ;
a[i]=a[j];
a[j]=t;
i++;
j--;
}
for (i =0; i<10; i++)
printf("%3d", a[i]);
printf("\n");
return 0;
}