Computer Science, asked by sunerisulthana301, 11 months ago

C program to find fibonacci numbers in a given array

Answers

Answered by Anonymous
4
Fibonacci Series Using an Array

We have now used a variety the features of C. This final example will introduce the array. The program prints out a table of Fibonacci numbers. These are defined by a series in which any element is the sum of the previous two elements.

This defines an array called fib of 24 integers. In C, the array index is bounded by square brackets (this avoids confusion with a function call). Also, the first element of the array has index zero, and for this 24 element array, the last element is index 23
Similar questions