C-study/05-1/5/5.c
2021-11-19 19:20:55 +08:00

16 lines
237 B
C

#include <stdio.h>
int main()
{
int n=30,t1=1,t2=1,t3;
for(int i=1;i<=n;i++){
printf("%d\t", t1);
t3 = t1+t2;
t1 = t2;
t2 = t3;
if((i%5==0)&&(i/5!=6))printf("\n");
}
return 0;
}