Technicalsymposium



Join Our Email Alerts-Subscribe
Important Note:Login & Check Your Email Inbox and Activate Confirmation Link


Enter Your Email :

C Program For FIBINACCI SERIES USING ARRAY.

void main()

{

int n,i,a[20];

clrscr();

printf("Enter the n value:");

scanf("%d",&n);

a[0]=0;

a[1]=1;

printf("%d\n",a[0]);

printf("%d\n",a[1]);

for(i=2;i
{

a[i]=a[i-1]+a[i-2];

printf("%d\n",a[i]);

}

getch();

}


All Programming Codes/Onlie Training/ Lab Manuals Download