package day01;
public class rabbit_ {
public static void main(String[] args) {
int [] rabbit=new int[30];
rabbit[0]=1;
rabbit[1]=1;
for(int i=2;i<rabbit.length;i++)
{
rabbit[i]=rabbit[i-1]+rabbit[i-2];
}
for(int i=0;i<rabbit.length;i++)
{
System.out.print("第"+(i+1)+"个月的兔子数为:"+"\t");
System.out.println(rabbit[i]);
}
}
}