CodePudding user response:
Just two for loop iterate through all the two combination, to find the maximum,Int main () {
Int n, I, j, m, t, * a;
The scanf (" % d ", & amp; N);
A=(int *) malloc (sizeof (int) * n);
for(i=0; i
}
M=0;
for(i=0; i
If (t> M m=t);//m to save the maximum
}
}
Printf (" % d ", m);
free(a);
return 0;
}