You are viewing a single comment's thread. Return to all comments →
using namespace std;
int main() { int n; cin>>n; int arr[n]; for(int i=0;i>arr[i]; }
for(int i=n;i>0;i--) { cout<<arr[i-1]<<" "; } return 0;
}
Seems like cookies are disabled on this browser, please enable them to open this website
An unexpected error occurred. Please try reloading the page. If problem persists, please contact support@hackerrank.com
Arrays Introduction
You are viewing a single comment's thread. Return to all comments →
include
using namespace std;
int main() { int n; cin>>n; int arr[n]; for(int i=0;i>arr[i]; }
}