#include <iostream>
using namespace std;
void array2(float arr[][4],int n)
{
float max,min,sum;
int i,j;
for(i=0;i<n;i++)
{
max=min=arr[i][0];
sum=0;
for(j=0;j<4;j++)
{
sum+=arr[i][j];
if(max<arr[i][j]) max=arr[i][j];
if(min>arr[i][j]) min=arr[i][j];
}
cout<<max<<" ";
cout<<min<<" ";
cout<<sum<<" ";
cout<<sum/4<<endl;
}
}