#include "iostream"
#include "stdlib.h"
#include "locale.h"
using namespace std;
int main(){
setlocale(LC_ALL, "russian");
const int N = 10;
int A[N];
for(int i = 0; i < N; i++){
cout << "Ââåäèòå [" << i << "] ýëåìåíò: "; cin >> A[i];
}
cout << "Ìàññèâ äî îáðàáîòêè" << endl;
cout << "Ýëåìåíò [" << i << "] = " << A[i] << endl;
for(int i = 0; i < (N/2); i++){
int temp = A[i];
A[i] = A[N-i-1];
A[N-i-1] = temp;
cout << "Ìàññèâ ïîñëå" << endl;
system("pause");
return 0;
#include "iostream"
#include "stdlib.h"
#include "locale.h"
using namespace std;
int main(){
setlocale(LC_ALL, "russian");
const int N = 10;
int A[N];
for(int i = 0; i < N; i++){
cout << "Ââåäèòå [" << i << "] ýëåìåíò: "; cin >> A[i];
}
cout << "Ìàññèâ äî îáðàáîòêè" << endl;
for(int i = 0; i < N; i++){
cout << "Ýëåìåíò [" << i << "] = " << A[i] << endl;
}
for(int i = 0; i < (N/2); i++){
int temp = A[i];
A[i] = A[N-i-1];
A[N-i-1] = temp;
}
cout << "Ìàññèâ ïîñëå" << endl;
for(int i = 0; i < N; i++){
cout << "Ýëåìåíò [" << i << "] = " << A[i] << endl;
}
system("pause");
return 0;
}