#include
using namespace std;
void main()
{
const int size=10;
int arr[size];
int max;
for (int i=0;i arr[i]=rand() % 10;
cout << arr[i] << " ";<br> }
max=0;
for (int i=0;iarr[max]) max=i;
cout << "\nMax element = " << arr[max] << endl;<br> cin.get();
cin.get();
}