C/C++语言经典算法题

1、有一对兔子,从出生后第3个月起每月都生一对兔子,小兔子长到第三个月后每月又生一对兔子,假如兔子都不死,问每月的兔子总数为多少?html #include <stdio.h> int main(){ int month,temp1,temp2; month=temp1=temp2=2; printf("第1个月兔子数量为2\n"); printf("第2个月兔子数
相关文章
相关标签/搜索