题目内容

给定程序的功能是计算score中m个人的平均成绩aver,将低于aver的成绩放在below中,通过函数名返回人数。 例如,当score=(10,20,30,40,50,60,70,80,90),m=9时,函数返回的人数应该是4,below=10,20,30,40)。 注意:部分源程序已给出。 请勿改动主函数main和其他函数中的任何内容,仅在横线上填入所编写的若干表达式或语句。 试题程序: #include<stdio.h> #include<string.h> int fun(int score[],int m,int below[]) int i,j=0; float aver=0.0: for(i=0;i<m;i++) aver+=score[i]: aver/=(float)m; n=fun(score,9, (2) ); printf("\n Below the average score are:%d\n",n); for(i=0;i<n;i++) for(i=0;i<m;i++) if(score[i]~aver) below[j++]= (1) ; return j; void main() int i,n,below[9]; int score[9]=10,20,30,40,50,60,70,80,90); printf("%d", (3) );

查看答案
更多问题

Even though he was the leading candidate for the position, he continued to campaign______(像以往一样积极).

将考生文件夹下DREAM文件央中的文件SENSE.BMP设置为存档和只读属性。 2.将考生文件夹下DOVER\SWIM文件夹中的文件夹DELPHI删除。 3.将考生文件夹下POWER\FIELD文件夹中的文件COPY.WPS复制到考生文件夹下的APPLE~PIE文件夹中。 4.在考生文件夹下的DRIVE文件夹中建立一个新文件夹MODDLE。 5.将考生文件夹下TEEN文件夹中的文件WEXAM.TXT移动到考生文件夹下SWAN文件夹中,改名为BUILDER.BAS。

_____(集中精力于)his scientific research ,he had no time left for recreational activities.

根据金融犯罪的行为方式不同,可以分为诈骗型金融犯罪,伪造型金融犯罪,利用便利型金融犯罪和规避型金融犯罪。( )

A. 对
B. 错

答案查题题库