文件名称:qishixunyou
-
所属分类:
- 标签属性:
- 上传时间:2012-11-16
-
文件大小:2.39kb
-
已下载:0次
-
提 供 者:
-
相关连接:无下载说明:别用迅雷下载,失败请重下,重下不扣分!
介绍说明--下载内容来自于网络,使用问题请自行百度
2. 编程序,使用如下所谓的简单变量“数据平移”方法来求出Fibonacci数列的第n项(的具体项值)
并显示在屏幕上(正整数n通过键盘输入):说明变量old1=1,old2=1,newItem;新的Fibonacci项newItem总是“距它最近”的前两项(old1与old2)的累加和。而后通过“old1=old2 old2=newItem ”进行所谓的“数据平移”。接着计算另一个新的Fibonacci项newItem,依次循环,直到求出数列的第n项时为止。
-2. A program, use the following simple variable called " data translation" method to calculate the first n Fibonacci sequence item (the value of the specific items) and display on the screen (a positive integer n the keyboard input): Descr iption of variables old1 = 1 , old2 = 1, newItem new Fibonacci item newItem always " away from it recently," the first two (old1 and old2) and cumulative. Then through " old1 = old2 old2 = newItem " so-called " data translation." Then another new Fibonacci calculation item newItem, in cycles, until the find the series until the first n items.
并显示在屏幕上(正整数n通过键盘输入):说明变量old1=1,old2=1,newItem;新的Fibonacci项newItem总是“距它最近”的前两项(old1与old2)的累加和。而后通过“old1=old2 old2=newItem ”进行所谓的“数据平移”。接着计算另一个新的Fibonacci项newItem,依次循环,直到求出数列的第n项时为止。
-2. A program, use the following simple variable called " data translation" method to calculate the first n Fibonacci sequence item (the value of the specific items) and display on the screen (a positive integer n the keyboard input): Descr iption of variables old1 = 1 , old2 = 1, newItem new Fibonacci item newItem always " away from it recently," the first two (old1 and old2) and cumulative. Then through " old1 = old2 old2 = newItem " so-called " data translation." Then another new Fibonacci calculation item newItem, in cycles, until the find the series until the first n items.
(系统自动生成,下载前可以参看下载内容)
下载文件列表
骑士巡游.cpp
1-6骑士巡游.cpp
1-3数据平移.cpp
1-6骑士巡游.cpp
1-3数据平移.cpp
本网站为编程资源及源代码搜集、介绍的搜索网站,版权归原作者所有! 粤ICP备11031372号
1999-2046 搜珍网 All Rights Reserved.