answersLogoWhite

0

#include<stdio.h>

#include<conio.h>

void main()

{

int a=-1,b=1,c=0,i,n;

clrscr()

printf("Enter the limit");

scanf(%d,&n)

printf(the resultant fibonacci sequence is:)

for(i=1;i<=n;i++)

{

c=a+b;

printf(%d, c)

a=b;

b=c;

}

getch();

}

User Avatar

Wiki User

13y ago

What else can I help you with?

Related Questions

How do you generate Fibonacci series by adding previous three numbers?

subtract the smallest one


Write a function to code the Fibonacci series in LISP programming language?

(defun fibo (n) (if (&lt; n 2) n (return (+ (fibo (- n 1)) (fibo (- n 2))))))


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

i dn't know. haha


Fibbomacci series using recursion shell programming?

Here is a good answer for recursion Fibonacci series. #include &lt;stdio.h&gt; #include &lt;conio.h&gt; long Fibonacci(long n); int main() { long r, n,i; printf("Enter the value of n: "); scanf("%ld",&amp;n); for(i=0;i&lt;=n;i++) { printf(" Fibonacci(%ld)= %ld\n", i,Fibonacci(i)); } getch(); return 0; } long Fibonacci(long n) { if(n==0 n==1) return n; else { return (Fibonacci(n-1)+Fibonacci(n-2)); } } for n=5; Output: Fibonacci(0)=0 Fibonacci(1)=1 Fibonacci(2)=1 Fibonacci(3)=2 Fibonacci(4)=3 Fibonacci(5)=5


Is 20 a Fibonacci number?

20 is not a term in the Fibonacci series.


Is it possible to use arrays when using the java programming language?

It is possible to use arrays when employing java programming language. There are many different series of programming choice that can be employed with various end results.


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.


Create a c plus plus program to generate Fibonacci series?

#include #include void main() { clrscr() int a=0,b=1,c,i,n; coutn cout


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.

Trending Questions
What if your company sells twenty five different products you've been ask to write a pseudo code that will display the no of products whose sales are above the average sales value? Identify at least two data structures that are used to organize a typical file cabinet Why do you feel it is necessary to emulate these types of data structures in a computer program? Is butane belongs to petrochemicals? Name three industries in which measuring and controlling viscosity are important? What is a site instruction in construction of a project? Risk analysis is used to verify the cause of potential risks that a network may face What is a known phase of risk analysis? What current will be needed to produce a voltage of 5V cross a 12kΩ resistor? What is the different techniques of enzyme immobilization? How many amperes for 3 phase 220v 5 tonner? What is best insulation to use under laminate? How earthing is calculated and size of earth strip? What is the density of Galvanized Steel? Does the type of wire make a difference to the circuit? What are the Applications of analog to digital converter? How is operation analysis related to methods engineering? What is the primary tool you use to interact with a graphical user interface? How much temperature and pressure ppr pipe can bear? What is the binary search tree worst case time complexity? Why is it easier to convert numbers from binary to hexadecimal than decimal to hexadecimal? How has electronic technology revolutionized the world in a short amount of time?