#include <stdio.h>
int main() { int a[100] = {0}, n = 0, i = 0, j = 0; scanf("%d", &n); for (i = 0; i < n; i++) { scanf("%d", &a[i]); } for (j = n - 1; j >= 0; j--) { printf("%d ", a[j]); } return 0; }
By signing up a 追梦算法网 universal account, you can submit code and join discussions in all online judging services provided by us.
Using your 追梦算法网 universal account