皮皮学,免费搜题
登录
logo - 刷刷题
搜题
【单选题】
下列给定,函数fun的功能是:给定n个实数,输出平均值,并统计平均值以上(含平均值)的实数个数。例如,n=8时,输入193.199、195.673、195.757、196.051、196.092、196.596、196.579、196.763、所得平均值为195.838745,在平均值以上的实数个数应为5。 ”/********found*****/”之后所指的语句有错,请选择下列正确的语句替换。 #include #include #include int fun(float x[], int n) {int j, c=0;float xa=0.0; for (j=0; j xa += x[j]/n; printf("ave =%f\n",xa); for (j=0; j /************found************/ if (x[j] => xa) c++; return c; } main () {float x[100] = {193.199, 195.673, 195.757, 196.051, 196.092, 196.596, 196.579, 196.763}; system("cls"); printf("%d\n", fun (x, 8)); }
A.
if (x[j] > xa)
B.
if (x[j] >= xa)
C.
if (x[j] <= xa)
D.
if (x[j] == xa)
手机使用
分享
复制链接
新浪微博
分享QQ
微信扫一扫
微信内点击右上角“…”即可分享
反馈
参考答案:
举一反三
【单选题】Do you remember ______ you have given this box to?
A.
what
B.
how
C.
whom
【单选题】— Alice, why aren't you at work today? — I _____ a day off. [     ]
A.
have given
B.
have been given
C.
gave
D.
was given
【单选题】—Do you have ________ at home now, mum? —No, we still have to get some fruits and vegetables.
A.
anything
B.
everything
C.
something
D.
nothing
【单选题】Were you given a _____, or did you have to do it?
A.
job
B.
duty
C.
request
D.
choice
【单选题】孕妇,妊娠36周,主诉头晕、头痛、视物模糊、恶心。查血压160/110mmHg,尿蛋白6g/24h,下肢水肿(++),诊断可能性最大的为( )
A.
妊娠期高血压
B.
子痫前期轻度
C.
妊娠水肿
D.
子痫前期重度
E.
子痫
【单选题】She is pleased with what you have given her husband and______you have fold him.
A.
that
B.
which
C.
al what
D.
all that
【单选题】She is pleased with what you have given him and ______ you have told him.
A.
that
B.
which
C.
all what
D.
all that
【单选题】孕妇,妊娠36周,主诉头晕、头痛、视物模糊、恶心。查血压160/110mmHg,尿蛋白6g/24h诊断可能性最大为
A.
轻度妊高征
B.
中度妊高征
C.
妊娠水肿
D.
先兆子痫
E.
子痫
【单选题】Jack is pleased with ____ you have given him and all ____ you have told him.
A.
that, what
B.
what, that
C.
which, what
D.
that, which
【单选题】I’m sorry ____ you enough help.
A.
have given
B.
of not giving
C.
not to have given
D.
to have given
相关题目:
参考解析:
知识点:
题目纠错 0
发布
创建自己的小题库 - 刷刷题