函数题:4 ElementType Average( ElementType S[],int N) { int m; ElementType sum=0,average=0; for(m=0;m<N;m++) { sum=sum+S[m]; } average=sum/N; return average; }