#include
#include
#include
using namespace std;
int main()
{
srand (time(0));
int a[30];
for (int i=0; i<30; i++)</em>
{
a[i]=rand()%30+1;
cout <<a[i] <<' ';</em>
}
cout <<endl;</em>
int max = 0;
for (int i=1; i<30; i++)</em>
max = (a[i]>a[max]) ? i:max;
cout <<a[max] <<endl;</em>
return 0;
}