#include
#include
void main()
{int i,a=0,b=1,c;
clrscr();
printf(“\n\n The fibonacci series : \n%d\n%d\n”,a,b);
for(i=1;i<=20;i++)
{
C=a+b;
Printf(“\n%d”,c);
A=b;
B=c;}
Getch();
}
o/p->
0 1 1 2 3 5 8 13 21 34 55
Everyone Is Equal In Front Of Tecinology
Hello Friends,
I am writing the programs for you.
Start noting from bottom to top.
Visit
0 comments:
Post a Comment
If you have any proble fee free to ask it here