Daffodil International University
Problem Link
//Please follow from main function
#include <cmath>
#include <cstdio>
#include <vector>
#include <iostream>
#include <algorithm>
using namespace std;
int main() {
int a, arr[10000];
cin>>a;
for(int i=0; i<a; i++){
cin>>arr[i];
}
for(int i=a-1; i>=0; i--){
cout<<arr[i];
if(i!=0) cout<<" ";
}
return 0;
}
0 Comments