C Programming Awareness and Practice
A Student Effort .... By Shshank Singhal Ajmer, Rajasthan, India
Pages
HOME
BASIC
RECURSION
ARRAY
STRINGS
CONVERSIONS
Q. Fabocani series ?
THE OUTPUT WOULD BE
#include<stdio.h>
#include<conio.h>
void main( )
{
clrscr( );
int i,a[10];
a[0]=0;
a[1]=1;
for(i=0;i<=10;i++)
{ a[i+2]=a[i]+a[i+1];
}
for(i=1;i<=10;i++)
printf("%d\n",a[i]);
getch( );
}
No comments:
Post a Comment
Newer Post
Older Post
Home
Subscribe to:
Post Comments (Atom)
No comments:
Post a Comment