fun();/*S$fun(a)*/\rfor(i=0;i<10;i++)\r{printf("%4d",a[i]);\rfprintf(,,%4d,\a[i1);/*S$fp,"%4d"*/\r)\rfclose(fp);\r)\r0$p80\r,-.(\n\rStest3-2.c)(600)\r0$\r1.funJ9./400$\r1)J9OP-Qs±/-^100\r2)Ig<:gh200\r3)I²f0100\r2.mainJ9200:EvaluationWarning:ThedocumentwascreatedwithSpire.PDFfor.NET.\r1)OP³sp´9CN8l9C§67100\r2)ZmfunJ9N6!100\r`p :\r#include<stdio.h>\rdoublefun(inta[],intn)\r{\rinti,max,min;\rdoubles=0,aver;\rmax=min=a[0];\rfor(i=0;i<n;i++)\r(\rs=s+a[i];\rif(max<a[i])max=a[i];\relseif(min>a[i])min=a[i];\r)\raver=(s-max-min)/(n-2);\rreturnaver;\r)\rvoidmain()\r{inta[100],i,n;\rdoubleaver;\rprintf(nEntern(n<100):n);\rscanf(M%dn,&n);\rprintf(uEntera[0]-a[%d]:n,n-l);\rfor(i=0;i<n;i++)\rscanf("µd\a+i);\raver=fun(a,n);\rprintf(naver=%f\nn,aver);\r)