#include<stdio.h>
int main()
{
int a[3][4],i,j,max1,max2,max3;
double avg1=0, avg2=0, avg3=0 ;
for (i = 0; i < 3; i++)
for (j = 0; j < 4; j++)scanf("%d",& a[i][j]);
max1 = a[0][0], max2 = a[1][0], max3 = a[2][0];
for (i = 0; i < 4; i++)
{
if (a[0][i] > max1)max1 = a[0][i];
}
for (i = 0; i < 4; i++)
{
if (a[1][i] > max1)max1 = a[1][i];
}
for (i = 0; i < 4; i++)
{
if (a[2][i] > max1)max1 = a[2][i];
}
printf("%d %d %d\n",&max1,&max2,&max3);
}
只写了这些,但是最大值求不出来,想请教一下怎么写