在给定程序中,函数fun的功能是:计算 的前n项,若x=2.5,n=15时,函

题型:填空题

问题:

在给定程序中,函数fun的功能是:计算


的前n项,若x=2.5,n=15时,函数值为:1.917915。
请在程序的下画线处填入正确的内容并把下画线删除,使程序得出正确的结果。
注意:源程序存放在考生文件夹下的BLANK1.C中。不得增行或删行,也不得更改程序的结构。
文件BLANK1.C内容如下:
#include<stdio.h>
#include<math.h>
double fun(double x,int n)
double f,t; int i;
/**********found**********/
f= (1)
t=-1;
for(i=1;i<=n;i++)

/**********found**********/
t*=( (2) )*x/i;
/**********found**********/
f+= (3)

return f;
void main( )
double x,y;
x=2.5;
y=fun(x,15);
printf("\nThe result is:\n");
printf("x=%-12.6f y=%-12.6f\n",x,y);

考点:计算机等级考试C语言二级C语言机试
题型:填空题

首字母填空。

1. Swallows usually stay in the south in winter and fly to n_______ countries in summer.

2. Don't throw l_______ into the river. It may waste water.

3. There are many t_______ visiting the places of interest in Beijing every year.

4. "Don't shoot any birds," he said to the hunter a_______.

5. Millie was so c_______ that she forgot to bring her homework yesterday.

6. Our school is a m_______ one. Boys and girls have lessons together.

7. After having Home Economics, I know how to cook healthy and t_______ meals.

8. We usually have PE t________ a week.

9. You will find it u________ to learn English well after you leave school.

10. English is one of my favorite s_______.

题型:填空题

下列选项中正确的是(  )

A.相等的角是对顶角

B.两直线平行,同旁内角相等

C.直线外一点到这条直线的垂线段,叫点到直线的距离

D.经过直线外一点,有且只有一条直线与这条直线平行

题型:填空题

下列做法中,哪项不符合行政许可法关于许可设定权的规定( )

A.某省地方性法规设定行业协会的设立登记
B.某直辖市政府的规章规定某行政许可的实施期限为1年
C.某部门规章对法律设定的某项行政许可作出具体规定
D.国务院发布决定设定一项许可

题型:填空题

对骨髓抑制不明显的化学治疗药物类型是()

A.三尖杉碱

B.阿糖胞苷

C.左旋门冬酰胺酶

D.柔红霉素

E.甲氨蝶呤

题型:填空题

瑞典、丹麦、芬兰等国家高度清廉,这些国家每年的腐败案件仅有几十件上下。

更多题库