cppOlimp/razvorot.cpp

19 lines
306 B
C++
Raw Normal View History

2022-02-07 22:33:05 +03:00
//acmp.ru 0149 razvorot.cpp 9%
#include <stdio.h>
int main(){
freopen("INPUT.TXT", "r", stdin);
freopen("OUTPUT.TXT", "w", stdout);
int num;
scanf("%i", &num);
int arr[num];
for(int i = 0; i < num; i++){
scanf("\n%i", &arr[i]);
}
for(int i = num-1; i >= 0; i--){
printf("%i ", arr[i]);
}
}