#include <iostream>
using namespace std;
int main()
{
unsigned int i = 0, j = 0, t = 0;
const unsigned int arrSize = 5;
int array[arrSize];
cout<<"enter the origil array:"<<endl;
for(i = 0; i < arrSize; i++)
{
cin >> array[i];
}
for (i = 0, j = 0; j < arrSize /2; ++i, ++j)
{
t = array[i];
array[i] = array[arrSize - 1 - j];
array[arrSize - 1 - j] = t;
}
cout<<"the opposite array:"<<endl;
for(i = 0; i < arrSize; i++)
cout<<array[i]<<" ";
system("pause");
return 0;
}