![]() |
#2
mrexcel2022-12-20 17:38
|
功能:编写函数 float fun ( float *a , int n ),用来计算n门课程的平均分,结果作为函数值返回。其中数组a中保存了n门课程的分数。
例如:若有5门课程的成绩是:90.5,72,80,61.5,55,则函数的值为:71.80。