You are viewing a single comment's thread. Return to all comments →
Good luck
using namespace std;
int main() { /* Enter your code here. Read input from STDIN. Print output to STDOUT */ int n; cin>>n; int num[n];
for(int i=0; i<n; i++){ cin>>num[i]; } for(int i=1; i<n+1; i++){ cout<<num[n-i]<<" "; }
return 0; }
Seems like cookies are disabled on this browser, please enable them to open this website
Arrays Introduction
You are viewing a single comment's thread. Return to all comments →
Good luck
include
include
using namespace std;
int main() { /* Enter your code here. Read input from STDIN. Print output to STDOUT */
int n; cin>>n; int num[n];
return 0; }