R
Ronen Kfir
Hi,
I have this code:
#include <stdio.h>
void main()
{
int i,n=40;
float a=0,b=1;
for (i=1;i<=n;i++)
{
printf("%.0f\n",a);
printf("%.0f\n",b);
a+=b;
b+=a;
}
getch();
}
It present Fibonacci serial of 40 elements. Now I need to divide it to
groups of 6 in each row.
Please help me do it.
Cheers.
I have this code:
#include <stdio.h>
void main()
{
int i,n=40;
float a=0,b=1;
for (i=1;i<=n;i++)
{
printf("%.0f\n",a);
printf("%.0f\n",b);
a+=b;
b+=a;
}
getch();
}
It present Fibonacci serial of 40 elements. Now I need to divide it to
groups of 6 in each row.
Please help me do it.
Cheers.