题目内容:
编写函数jsValue(int t),它的功能是:求Fibonacci数列中大于t的最小的一个数,结果由函数返回。其中Fibonacci数列F(n)的定义为: F(0)=0,F(1)=1
F(n)=F(n-1)+F(n-2) (n≥2)
最后调用函数writeDat()读取l0个数据t,分别得出结果且把结果输出到文件out.dat中。
例如:当t=1000时,函数值为:1597。
注意:部分源程序存在test.c文件中。
请勿改动数据文件in.dat中的任何数据、主函数main()和写函数writeDat()的内容。


参考答案:
答案解析: