Description: Programmed, use the following so-called simple variables Data Translation approach in order to obtain the first Fibonacci series n-item (the specific items of value) and displayed on the screen (positive integer n, through keyboard input): Description of variables old1 = 1, old2 = 1, newItem new items NewItem Fibonacci always away from it recently, the first two (old1 with old2) and cumulative. Then through old1 = old2 old2 = newItem the so-called data translation. Then a new calculation of the Fibonacci item newItem, followed by cycle, calculated until the first series until n items. Fibonacci series of calculation formula is as follows: fib (1) = 1 fib (2) = 1 fib (n) = fib (n-1)+ Fib (n-2) // greater than or equal to 3 on the arbitrary n
To Search:
- [4] - Procedures are completed for the design
- [testcom] - TestCom serial test software very easy t
- [74312974391] - Fahrenheit to Celsius temperature conver
File list (Check if you may need any files):
shiyan1
.......\Debug
.......\fibonacci.cpp
.......\fibonacci.dsp
.......\fibonacci.dsw
.......\fibonacci.ncb
.......\fibonacci.opt
.......\fibonacci.plg