皮皮学,免费搜题
登录
logo - 刷刷题
搜题
【简答题】
下列给定的,函数fun()的功能是:求出以下分数序列的前n项和。 2/1,3/2,5/3,8/5,13/8,21/13,… 其值通过函数值返回main()函数。例如,若输入n=5,则应输出8.391667。 [注意] 部分源程序给出如下。 请勿改动主函数main和其他函数中的任何内容,仅在函数fun的横线上填入所编写的若干表达式或语句。 [试题源程序] include<stdio.h> include<conio.h> double fun(int n) { int a=2, b=1, c, k; double (1) ; for(k=1; k<=n; k++) { s=s+1.0 *a/b; c=a; a+= (2) ; b=c; } return(d); } main() { int n=5; printf('/nThe value of function is: %1f/n', (3) ); }
手机使用
分享
复制链接
新浪微博
分享QQ
微信扫一扫
微信内点击右上角“…”即可分享
反馈
参考答案:
举一反三
【简答题】Summary of the second story: The second story is about love and loss. At 20, Steve and Woz started their work in his parents’ _________. And 10 years later, the Apple grew into a business with $2 bill...
【单选题】电力系统是由发电、输电、()、配电和用电组成的整体。
A.
变电
B.
变压器
C.
高压系统
D.
低压系统
【简答题】电力系统是由 、 和 组成。
【多选题】工程造价的作用包括( )。
A.
项目决策的依据
B.
制定投资计划和控制投资的依据
C.
筹集建设资金的依据
D.
评价投资效果的重要指标
E.
利益合理分配和调节产业结构的手段
【单选题】He is generally considered _________the first computer. [     ]
A.
to have invented
B.
inventing
C.
to invent
D.
having invented
【单选题】When infantile diarrhea and acidosis are basically corrected, but he has sudden convulsions,which causes should be considered first
A.
hypokalemia
B.
hypocalcemia
C.
low blood magnesium
D.
hyponatremia
E.
hypoglycemia
【单选题】He is generally considered _____ the first computer. [     ]
A.
to invent
B.
inventing
C.
to have invented
D.
having invented
【简答题】电力系统是由 、 和 组成。
【判断题】供电系统是由高压供电源系统、牵引供电系统、动力照明电系统和电力监控系统组成的
A.
正确
B.
错误
【单选题】关于休克型肺炎的治疗,下列哪项不合适
A.
可用低分子右旋糖酐或平衡盐液
B.
适当应用血管活性药物
C.
输液速度要快,以尽快补足血容量
D.
增加抗生素剂量
E.
酌情应用糖皮质激素
相关题目:
参考解析:
知识点:
题目纠错 0
发布
创建自己的小题库 - 刷刷题