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