#include <iostream>
#include <stdint.h>
#include <limits.h>
using namespace std;
int main()
{ const int n = 10;
int m[n];
int max = INT_MIN;
int min = INT_MAX;
for (int i=0; i<n; i++)
{
m[i] = rand() % 40;
if(m[i]>max)
max = m[i];
if(m[i]<min)
min = m[i];
}
cout<<max<<endl<<min<<endl<<max+min<<endl<<max*min<<endl;
return 0;
#include <iostream>
#include <stdint.h>
#include <limits.h>
using namespace std;
int main()
{ const int n = 10;
int m[n];
int max = INT_MIN;
int min = INT_MAX;
for (int i=0; i<n; i++)
{
m[i] = rand() % 40;
if(m[i]>max)
max = m[i];
if(m[i]<min)
min = m[i];
}
cout<<max<<endl<<min<<endl<<max+min<<endl<<max*min<<endl;
return 0;
}