answersLogoWhite

0

C orogram for Fibonacci series

User Avatar

Anonymous

14y ago
Updated: 8/17/2019

#include<stdio.h>

#include<conio.h>

void main()

{

printf("The first 20numbers of Fibonacci series are:");

int a=0, b=1, c, n=2;

printf("%d \t, %d", &a, &b);

while(n<20)

{

c=a+b;

printf("\t %d", &c);

a=b;

b=c;

n++;

}

getch();

}

User Avatar

Wiki User

14y ago

What else can I help you with?

Related Questions

Write a c program Fibonacci series using for loop in java?

Exactly what do you mean by 'C program in Java'


Write a program using while loop that generates Fabonaci series up to 200?

//to generate Fibonacci series upto a range of 200....(in C).... #include&lt;stdio.h&gt; main() { int a,b,c,i; a=0; b=1; printf("\n FIBONACCI SERIES .....\t"); i=1; while(i&lt;=(200-2)) { c=a+b; printf("\t%d",c); a=b; b=c; i++; } }


Is 20 a Fibonacci number?

20 is not a term in the Fibonacci series.


Program to generate Fibonacci series using storage class in c plus plus?

i dn't know. haha


Can you explain the program of Fibonacci series in c?

You mean you have written a program, but you don't understand it? Well, how could I explain it without seeing it?


Can you have the program in C plus plus for recursive function generating a series of terms?

Yes, this can be done. For example for Fibonacci series. You will find plenty of examples if you google for the types of series you need to be generated.


Who invent sEquence and series?

Fibonacci!


What is golden ratio in Fibonacci series?

As you expand the Fibonacci series, each new value in proportion to the previous approaches the Golden Ratio.


Program that generates and displays the Fibonacci?

/*WAP to display Fibonacci series*/ #include&lt;stdio.h&gt; #include&lt;conio.h&gt; void main() { int i,a=0,b=1,c; scanf("%d",&amp;n); printf("%d\n%d",a,b); for(i=0;i&lt;n;i++) { c=a+b; a=b; b=c; printf("\n%d",c); } getch(); }


Algoritham of Fibonacci series 0112358..?

132134...


Which areas of mathematics did Fibonacci specialize in?

Series


What is the 100th number in the Fibonacci series?

It is 354224848179261915075.