#include<stdio.h>
#include<conio.h>
void main()
{
	int i,n,a=0,b=1,c;
	clrscr();
	printf("enter a generate number");
	scanf("%d",&n);
	printf("fibonacci series");
	scanf("%d%d",a,b);
	for(i=0;i<n;i++)
	{
	  c=a+b;
	  a=b;
	  b=c;
	  printf("%d",c);
	}
	getch();
}

Output
enter a generate number6
fibonacci series011235813