Search unanswered questions...
Enter a question here...

Write a Fibonacci function then takes an input from the user in main program and pass to function which prints Fibonacci series up to this number?

In: Science
[Edit]

Answer

//program to find the fibonnacci series of n numbers.
#include
#include

Start here

void fibo(int);
void main()
{
int iLimit;
cout<<"Enter the number tikll which the fibonnacci series should be printed.";
cin>> iLimit;
fibo(iLimit);
}

void fibo(int iLimitnum)
{
int inum1,inum2,inum3;
int iadd;
inum1=0;
inum2=1;
int i;
cout<<"0";
For (i=0,i
{
iadd=inum1+inum2;
inum1=inum2;
inum2=iadd;
cout<
}
}

Improve Answer Discuss the question "Write a Fibonacci function then takes an input from the user in main program and pass to function which prints Fibonacci series up to this number?" Watch Question

First answer by ID2406490116. Last edit by Ryamish111. Contributor trust: 0 [recommend contributor]. Question popularity: 25 [recommend question]

Research your answer:

Answers.com > Wiki Answers > Categories > Science > Write a Fibonacci function then takes an input from the user in main program and pass to function which prints Fibonacci series up to this number?

Our contributors said this page should be displayed for the questions below. (Where do these come from)
If any of these are not a genuine rephrasing of the question, please help out and edit these alternates.
Java code fibonacci?  Fibonacci series in c?  Cprogram of fibonacci?  Discuss fibonacci series?  Logic of fibonacci series?  Function of input sources?  Did fibonacci have a wife?  What is fibonacci found in?  How fibonacci series works?  What is Fibonacci sequences?  What function of atmosphere?  Fibonacci series for n terms?  Program for fibonacci series?  What a main function of anus?  When do you use the fibonacci?  C program in fibonacci series?  What is the fibbonica sequence?  Rint the Fibonacci series in c?  Flow chart of fibonacci series?  What books did fibonacci write?