0
点赞
收藏
分享

微信扫一扫

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

cwq聖泉寒江2020 2022-02-18 阅读 49

#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 条评论