函数题: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;
}

posted on 2025-03-21 22:59  Swishy  阅读(5)  评论(0)    收藏  举报