古典问题:有一对兔子,从出生后第3个月起每个月都生一对兔子,小兔子长到第三个月后每个月又生一对兔子,假如兔子都不死,问每个月的兔子总数为多少?(计算到第20个月)
兔子的规律为数列1,1,2,3,5,8,13,21…*/
#include<stdio.h>
#include<string.h>
#define SIZE 21
void way() {
//1 1 2 3 5 8 13
int str[SIZE
古典问题:有一对兔子,从出生后第3个月起每个月都生一对兔子,小兔子长到第三个月后每个月又生一对兔子,假如兔子都不死,问每个月的兔子总数为多少?(计算到第20个月)
兔子的规律为数列1,1,2,3,5,8,13,21…*/
#include<stdio.h>
#include<string.h>
#define SIZE 21
void way() {
//1 1 2 3 5 8 13
int str[SIZE