/*
Namec: base_10.c
Purpose: 数组逆序重放
Author: syt
Date: 2016_01_25
*/
#include<stdio.h>
int main()
{
int n, i, temp;
scanf("%d", &n);
int arr[n];
for(i = 0; i < n; i++)
scanf("%d", &arr[i]);
for(i = 0; i < n/2; i++)
{
temp = arr[i];
arr[i] = arr[n - i - 1];
arr[n - i - 1] = temp;
}
for(i = 0; i < n; i++)
printf("%d ", arr[i]);
return 0;
}
Namec: base_10.c
Purpose: 数组逆序重放
Author: syt
Date: 2016_01_25
*/
#include<stdio.h>
int main()
{
int n, i, temp;
scanf("%d", &n);
int arr[n];
for(i = 0; i < n; i++)
scanf("%d", &arr[i]);
for(i = 0; i < n/2; i++)
{
temp = arr[i];
arr[i] = arr[n - i - 1];
arr[n - i - 1] = temp;
}
for(i = 0; i < n; i++)
printf("%d ", arr[i]);
return 0;
}