有一对兔子,从出生后第3个月起每个月都生一对兔子,小兔子长到第三个月后每个月又生一对兔子,假如兔子都不死,问前10个月内每个月的兔子对数为多少?程序分析: 兔子的规律为数列1,1,2,3,5,

阅读 49

2022-02-18

#include<iostream>
using namespace std;
    int main(){
        cout<<"1 1 2 3 5 8 13 21 34 55";//输出"1 1 2 3 5 8 13 21 34 55" 
        return 0; 
    }

精彩评论(0)

0 0 举报