Daffodil International University
Problem Link
//Please follow from main function
#include<bits/stdc++.h>
using namespace std;
int main()
{
int n, j, arr[10000];
cin>>n;
for(int i=0; i<n; i++){
cin>>arr[i];
j=i;
}
for(int i=j; i>=0; i--)
cout<<arr[i]<<" ";
return 0;
}
0 Comments