C Program to generate the Fibonacci Series starting from any two numbers
###### Posted by Samath
Last Updated: January 02, 2017

Write a C Program to generate the Fibonacci Series starting from any two numbers. The Fibonacci series is a series of numbers in which each number of the Fibonacci series is derived by the adding of its two immediate preceding numbers.

Code:

```#include<stdio.h>

int main() {
int first, second, sum, num, counter = 0;

printf("How many Fibonacci terms to display: ");
scanf("%d", &num);

printf("\nEnter First Number : ");
scanf("%d", &first);

printf("\nEnter Second Number : ");
scanf("%d", &second);

printf("\nFibonacci Series: %d  %d  ", first, second);

while (counter < num) {
sum = first + second;
printf("%d  ", sum);
first = second;
second = sum;
counter++;
}

return (0);
}```

###### Display the first 10 Fibonacci numbers in C++
Samath | Nov 02, 2014
###### Write a Python function to check if a number is a Fibonacci number.
JackBrn | Aug 16, 2024
###### C Program to find exponent Power Series
Samath | Jan 02, 2017
###### How do you create a recursive CTE to generate a series of numbers?
AliceWk | Jun 20, 2024
###### Write a Python function to generate the Fibonacci sequence up to n numbers.
KarenKg | Aug 31, 2024
###### How do you create a table with an identity column and set the starting value?
DavidLee | Jul 16, 2024
###### C++ Fibonacci Number Sequence using Recursion
Samath | Jan 05, 2017
###### JavaScript program that returns the nth entry in the Fibonacci sequence
SceDev | Feb 27, 2024
###### Write a Python function to find the nth Fibonacci number using dynamic programming.
EveClark | Aug 25, 2024
###### JavaScript program that return the sum of all odd Fibonacci numbers that are less than or equal to n
SceDev | Mar 28, 2024