皮皮学,免费搜题
登录
logo - 刷刷题
搜题
【简答题】
编程题 请编写函数fun(),它的功能是求Fibonacci数列中小于t的最大的一个数,结果由函数返回。其中Fibonacci数列F(n)的定义为 F(0)=0,F(1)=1 F(n)=F(n-1)+F(n-2) 例如:t=1000时 ,函数值为987。 注意:部分源程序给出如下。 请勿改动主函数main和其他函数中的任何内容,仅在函数fun的花括号中填入所编写的若干语句。 试题程序: #include #include #include int fun(int t) { } main() { int n; clrscr(); n=1000; printf("n=%d, f=%d\n",n, fun(n)); }
手机使用
分享
复制链接
新浪微博
分享QQ
微信扫一扫
微信内点击右上角“…”即可分享
反馈
参考答案:
举一反三
【单选题】提高流体在直管中的流速,流动的摩擦因数 λ 与沿程阻力损失 h f 将发生什么变化?
A.
λ 将减小 , h f 将增大
B.
λ 将增大, h f 将减小
C.
λ 、 h f 都将增大
D.
λ 、 h f 都将减小
【判断题】差数法是指对于发生的差错只查找末位数,以提高查错效率的方法。
A.
正确
B.
错误
【简答题】State some important cities in Canada.
【判断题】感应电动机频率归算的本质是用一个等效的静止的转子代替实际旋转的转子。
A.
正确
B.
错误
【判断题】合成橡胶是高反式结构的
A.
正确
B.
错误
【单选题】对于发生的差错只查找末位数,以提高查错效率的方法是
A.
差数法
B.
尾数法
C.
除2法
D.
除9法
【单选题】Gardening The technology of beauty Now, gardening was driven by three main trends: technological change, plant prospecting and fashion. Of these, the most important was technology, whose advances made...
A.
Y
B.
N
C.
NG
【单选题】提高流体在直管中的流速,流动的摩擦因数 与沿程阻力损失 h f 将发生什么变化?
A.
( A ) 将减小 , h f 将增大
B.
( B ) 将增大, h f 将减小
C.
( C ) 、 h f 都将增大
D.
( D ) 、 h f 都将减小
【简答题】State some important cities in BC.
【单选题】The idea of flying car is mentioned to illustrate______.
A.
a common perception of technology as characterizing the future
B.
a failed goal amid overwhelming technological success
C.
a goal that will be achieved in the future through technology
D.
the flawed vision of the future that many people held and some continue to hold
相关题目:
参考解析:
知识点:
题目纠错 0
发布
创建自己的小题库 - 刷刷题