What are the Fibonacci Numbers series?
As we know that The Fibonacci Sequence is a 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. The 2 is found by adding the two numbers before it (1+1). The 3 is found by adding the two numbers before it (1+2), And the 5 is (2+3), and so on!. We are providing online C Language coaching in Jalandhar. we are providing the coaching for C Language Code.
In other words, C Language Fibonacci numbers are used to create technical indicators using a mathematical sequence developed by the Italian mathematician, commonly referred to as “Fibonacci,” in the 13th century. The sequence of numbers, starting with zero and one, is created by adding the previous two numbers. For example, the early part of the sequence is 0, 1, 1, 2, 3, 5, 8, 13, 21, 34, 55, 89,144, 233, 377, and so on.
Write a Program to accept a value from the keyboard and print the Fibonacci series up to that number: C Language Program
Here we are write the prograam code , In addition explain the output of the programm. C Language is the most important language for hardware programming as well as gaming programing.
//———–0,1,1,2,3,5,8,13…………… # Fibonacci series
void main()
{
int a=0,b=1,c=0,d=1,n;
clrscr();
printf(” ENTER THE NUMBER ::”);
scanf(“%d”,&n);
while(d<=n)
{
printf(“%dt”,c);
a=b;
b=c;
c=a+b;
d++;
}
getch();
}
The Output is – 0,0,1,1,2,3,5,8………
C language Jalandhar: Click here to learn C language code videos
Digital Jalandhar ” The Institute of Digital Learning” is one of the best leading institutes located in Jalandhar, Most Importantly, We are providing online training for Computer Languages like , C language , C++ Language, Java Language, PHP Language, Python Language and many more.
Finally, If you are seaching the best institute for online c language code coaching, Digital Jalandhar is the best for you.
Pingback: Why 120 Hours Computer Course is Required for Govt. Job? - Digital Jalandhar