#include<stdio.h>
int main()
{
int a,b,n,i;
a = 1;
b = 1;
printf("请输入n的值:");
scanf("%d\n",&n);
printf("%d\t%d\t",a,b);
i = 3;
while(i<n)
{
a = a+b;
b = a-b;
printf("%d\t",a);
if(i%8 == 0)
printf("\n");
i++;
}
return 0;
}
寒月映雪
相关分类