Java入门基础练习
练习题
有一对兔子,从出生后第3个月起每个月都生一对兔子,小兔子长到第三个月后每个月又生一对兔子,
假如兔子都不死,问第二十个月的兔子对数为多少?
/*
1,1,2,3,5,8,13.....
0 1 2 3 4 5 6
*/
public class Test {
public static void main(String[] args) {
/*int a = 1;
int b = 1;
int sun
原创
2020-08-07 21:43:53 ·
137 阅读 ·
0 评论