C语言:在score数组存放有m个成绩,在函数fun中计算平均分,再将低于平均分的人数作为函数值返回,并将低于平均分的分数存放在below数组中,最后在main函数中输出below数组.例如,score数组的数据为85,78,64,90,70,82时,函数返回的人数应该是“3”,below数组中的数据应为“78,64,70”.
网友回答
#include
#define m 6
int fun(int score[],int below[])
{ int aver,sum=0,count=0,i;
for(i=0; i