现在,不少城市已开始使用“西气东输”工程送来的天然气。天然 气的主要成分是CH4,下图为四位同学在讨论化学式CH4的意义, 其中错误的是[ ]
A.
B.
C.
D.
答案:D
—I'm feeling terrible. I feel pain here and there.
—Oh ,__________, Nothing serious. [ ]
A. Take it easy
B. Go ahead
C. Stay longer
D. Take your time
在主函数中,从键盘输入若干个数放入数组x中,用0结束输入但不计入数组。下列给定程序中,函数fun()的功能是:输出数组元素中小于平均值的元素。请补充函数fun()。 例如:数组中元素的值依次为1,2,2,12,5,15,则程序的运行结果为1,2,2,5。 注意:部分源程序给出如下。 请勿改动主函数main和其他函数中的任何内容,仅在函数fun()的横线上填入所编写的若干表达式或语句。 试题程序: #include<conio.h> #include<stdio.h> void fun( 【1】 ,int n) double sum=0.0; double average=0.0; int i=0; for(i=0;i<n;i++) 【2】 ; average= 【3】 ; for(i=0;i<n;i++) if(x[i]<average) if(i%5==0) printf("\n"); printf("%d/",x[i]); main() int x[1000]; int i=0; clrscr(); printf("\nPlease enter some data(end with 0):"); do scanf("%d",&x[i]); while(x[i++]!=0); fun(x,i-1);