1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
include lt;stdio.h;
int main()
{
int fibonacci[32], i, j;
fibonacci[1] = fibonacci[2] = 1;
for (i = 3;i lt;= 20;i++)
fibonacci[i] = fibonacci[i - 1] + fibonacci[i - 2];
for (i = 0;i lt; 4;i++)
printf(;%d;, fibonacci[i * 5 + 1]);
for (j = 2;j lt;= 5;j++)
printf(; %d;, fibonacci[i * 5 + j]);
printf(;;n;);
}
return 0;
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
include lt;stdio.h;
int main()
{
int fibonacci[32], i, j;
fibonacci[1] = fibonacci[2] = 1;
for (i = 3;i lt;= 20;i++)
fibonacci[i] = fibonacci[i - 1] + fibonacci[i - 2];
for (i = 0;i lt; 4;i++)
{
printf(;%d;, fibonacci[i * 5 + 1]);
for (j = 2;j lt;= 5;j++)
printf(; %d;, fibonacci[i * 5 + j]);
printf(;;n;);
}
return 0;
}