问答题

请编一个函数int fun(float s[ ],int n),它的功能是:求高于平均分的人数,并作为函数值返回。数组s中存放n位学生的成绩。数组s的值由主函数从键盘读入,用-1来结束输入。

【参考答案】

main()
{int fun(float s[],int n);
float s[100],x,m......

(↓↓↓ 点击下方‘点击查看答案’看完整答案 ↓↓↓)