/* generowanie ciagu Fibonacciego */
#include<stdio.h>
int main()
{ int n,i;
long a,b,c;
printf("n=");
scanf("%d", &n);
if(n<0) printf("zla liczba");
else
if(n==0) printf("F0=0");
else
if(n==1)
{
printf("F0=0\n");
printf("F1=1");
}
else
{
printf("F 0 = 0\n");
printf("F 1 = 1\n");
a=0;
b=1;
for(i=2; i<=n; i++)
{
c=a+b;
a=b;
b=c;
printf("F%2d = %5ld\n",i,b);}
}
return 0;
}