#include
#include
using namespace std;
int main()
{
const int N = 10;
int a[N], max;
for (int i = 0; i < N; i++)
{
cout.width(3);
cout << i;</p>
}
cout << endl;</p>
srand( time( null ) );
for (int i = 0; i < N; i++)
{
a[i] = rand() % 100;
cout.width(3);
cout << a[i];</p>
}
cout << endl;</p>
max = 0;
for (int i = 2; i < N; i += 2)
if (a[i] > a[max])
max = i;
cout << max << ": " << a[max] << endl;</p>
return 0;
}