#include <iostream>
using namespace std;
const int n = 10;
int main() {
int i, A[n];
for(i = n - 1; i >= 0; i--){
cout << "A[" << i << "]="; cin >> A[i];
}
for(i = 0; i < n; i++){
cout << A[i] << " ";
return 0;
#include <iostream>
using namespace std;
const int n = 10;
int main() {
int i, A[n];
for(i = n - 1; i >= 0; i--){
cout << "A[" << i << "]="; cin >> A[i];
}
for(i = 0; i < n; i++){
cout << A[i] << " ";
}
return 0;
}