[Paybyte series (Fibonacci series)] and paybyte Series
/* Note: Fibonacci is a european mathematician in the 1200 s. In his work, he once mentioned that if a rabbit produces a rabbit every month, it will also start to produce in a month. At first there was only one rabbit, two rabbits in a month, three rabbits in two months, and five rabbits in three months )...... If you don't quite understand this example, let's take a picture. Note that the new Bunny will only be put into production in a month's growth period. A similar principle can also be used for plant growth. This is the Fibonacci series, the general habit is called the toll series, such as:, 89 solution: we can talk about the charge series is defined as the following: Fn = Fn-1 + Fn-2, n> 1 Fn = n, n = 0 or 1 */# include <stdio. h> # include <stdlib. h> # define N 20int main (void) {int Fib [N] = {0}; int I; Fib [0] = 0; Fib [1] = 1; for (I = 2; I <N; I ++) Fib [I] = Fib [I-2] + Fib [I-1]; for (I = 0; I <N; I ++) {printf ("% d", Fib [I]); printf ("");} printf ("\ n"); return 0 ;}