You are viewing a single comment's thread. Return to all comments →
using namespace std;
int main() { int inp; cin >> inp; int array[inp];
for(int i = 0; i < inp; i++){ cin >> array[i]; } reverse(array, array + inp); for (int j = 0; j < inp; j++) { cout << array[j] << " "; } 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 →
include
include
include
include
include
include
using namespace std;
int main() { int inp; cin >> inp; int array[inp];
}