#include
#include
#include
int main()
{
using namespace std;
cout << "Enter size of array: ";<br> int N;
cin >> N;
int * ARR = new int[N];
srand(time(0));
int i;
for (i = 0; i < N; ++i)
ARR[i] = rand() % 100 + 1;
cout << "Here is an original array:\n";<br> for (i = 0; i < N; ++i)
cout << ARR[i] << " ";<br> cout << endl;<br>
int temp = ARR[N - 1];
for (i = N - 1; i > 0; --i)
ARR[i] = ARR[i - 1];
ARR[0] = temp;
cout << "\nHere is a new array:\n";<br> for (i = 0; i < N; ++i)
cout << ARR[i] << " ";<br> cout << endl;<br>
return 0;
}