#define _CRT_SECURE_NO_WARNINGS 1标签:ABC,入门,int,明解,练习,++,printf,main,define From: https://blog.51cto.com/u_15866017/5973546
#include <stdio.h>
#define ABC 5
int main(){
int x;
int a[ABC];
for (x = 0; x < ABC; x++)
{
printf("a[%d]:", x);
scanf("%d", &a[x]);
}
puts("倒叙排列了。");
for (x = 0; x < (ABC/2); x++)
{
int c = a[x];
a[x] = a[ABC-1 - x];
a[ABC-1 - x] = c;
}
for (x = 0; x < ABC; x++)
printf("a[%d]=%d\n", x, a[x]);
return 0;
}