1.5 兔子产子问题

#include<stdio.h>
int main()
{
	long fib1=1,fib2=1,fib;
	int i;
	printf("%121d21d",fib1,fib2);
	for (i=3;i<=30;i++)
	{
		fib=fib1+fib2;
		printf("%12d",fib);
		if(i%4==0)
		printf("\n");
		fib2=fib1;
		fib1=fib;
	}
}

  

posted @ 2023-04-21 20:40  痛苦代码源  阅读(12)  评论(0编辑  收藏  举报