问题:
classClassName
{
publicvoidfind(outintmax,outintmin,paramsint[]array)
{
intn=array.Length,i=1;
max=array[0];
min=array[0];
while(i
if(array[i]>max)
max=array[i];
else
if(array[i]
}
}
}
classProgram
{
staticvoidMain(string[]args)
{
intmax,min;
int[]a=newint[10]{97,65,32,17,58,43,79,81,23,10};
ClassNames=newClassName();
s.find(outmax,outmin,a);
Console.WriteLine("最大数为:"+max);
Console.WriteLine("最小数为:"+min);
相关内容