Computer Science, asked by rutendoshalom2, 8 days ago

Write an application to generate the first 5 numbers of the Fibonacci series, that is, to generate the series 1, 1, 2, 3, 5 and stores them in registers from 24h.Write an application to generate the first 5 numbers of the Fibonacci series, that is, to generate the series 1, 1, 2, 3, 5 and stores them in registers from 24h.v

Answers

Answered by bhavalesanjay9
1

Answer:

hello good afternoon

Explanation:

have a nice day ahead

Answered by Anonymous
1

Explanation:

If you have attended interviews as a programmer, you would know that there many C programming interviews that may a question to create a program for Fibonacci series . This tricky question which seems simple bothers many. In this article we would be discussing How to implement Fibonacci Series in C. Following pointers will be discussed here,

Fibonacci Series

Fibonacci Series Till A User Enters Number

Fibonacci Series Using Recursion

Let us get started then,

Fibonacci Series in C

Fibonacci series is a series of numbers formed by the addition of the preceding two numbers in the series. The first two terms are zero and one respectively. The terms after this are generated by simply adding the previous two terms.

There are two ways to write the fibonacci series program:

Fibonacci Series without recursion

Fibonacci Series using recursion

How do you calculate Fibonacci?

The Fibonacci Sequence is the series of numbers: 0, 1, 1, 2, 3, 5, 8, 13, 21, 34, …

The next number is found by adding up the two numbers before it:

2 is calculated by adding the two numbers preceding it (1+1),

3 is calculated by adding the two numbers preceding it (1+2),

5 is (2+3), and so on..

Here is an example of Fibonacci series: 0,1,1,2,3,5,8,13….etc.

In the above example, 0 and 1 are the first two terms of the series. These two terms are printed directly. The third term is made by adding the first two terms. In this case 0 and 1. So, we get 0+1=1. Hence 1 is printed as the third term. The next term is generated by using the second and third term and not using the first term. It is done until the number of terms you want or requested by the user. In the above example, we have used eight terms.

 \\  \\

HOPE IT HELPS ✨❤️

Similar questions