#include <iostream>
using namespace std;
int main()
{
int n, d, size, i;
do
{
cout << "Input size of the array: ";
cin >> size;
d = (size < 0 || size>25);
if (d)
{
cout << "Your size is not allowed";
}
} while (d);
int arr[size];
for (int i = 0; i < size; i++)
{
cout << "Input your elements: ";
cin >> arr[i];
}
for (int i = 0; i < size; i++)
{
cout << arr[i] << ' ';
}
}