#include<stdio.h>
#include<conio.h>
#include<iostream.h>
#include<math.h>
void main()
{
int n;
clrscr();
printf("How many numbers : ");
scanf("%d",&n);
long a[1000];
a[0]=0;
a[1]=1;
for(int i=2;i<n;i++)
a[i]=a[i-1]+a[i-2];
for(i=0;i<n;i++)
cout<<"\n\na["<<i+1<<"] = "<<a[i];
getch();
}
///////////////////////////////////////////////////////////////////////////
Copy & paste this code in your TC & run, then you will get output.......
If you have any problem please comment below.........