发布网友
共1个回答
热心网友
int max(int d[ ],int n)
{
int max=d[0];
int i;
for(i=0;i<n;i++)
{
if(max<d[i])
{
max=d[i];
}
}
return max;
}