#include
#include
using namespace std;
int input_array (int a[])
{
int m1;
int i = 0;
char YorN;
cout << "Please input an integer: ";
cin >> m1;
cout << "Do you want to input the integers
cin >> YorN;
if(YorN == 'N')
{
while(i < m1)
{
a[i] = rand() % 100 ;
i = i + 1;
}
}
else
{
while(i < m1)
{
cin >> a[i];
i = i + 1;
}
}
return m1;
}
int main()
{
int m;
int a[m];
m = input_array (a);
cout << a[0];
return 0;
}