C Practical and Assignment Programs-Fibonacci Series

preview_player
Показать описание
C Practical and Assignment Programs-Fibonacci Series
In this video we will be generating Fibonacci Series in C programming language. The logic is also explained at the start and later we jump into the code. If you have any doubt comment on any of our video or channel and we will make it for you. The full description of question is provided below. Now this program is written in C programming language but will work in C++. Fell free to provide you suggestion.

Q. To generate Fibonacci numbers.
ie 0, 1, 1, 2, 3, 5, 8, 13, 21, 34, 55......

We The Computer Guys
Shreyas Zagade
Aakash Thakur
Ananya Jain
Рекомендации по теме
Комментарии
Автор

NEAT AND CLEAN EXPLANATION.THANKS VERY MUCH.

brij_k_vasi
Автор

You can also try this following code for reduce the line but answer is almost same.. just do it ;)

#include <stdio.h>
void main()
{
int i, fib, no1=0, no2=1;

clrscr();

printf("%d %d", no1, no2);
for(i = 1; i < 10; i++) // you can fix the value (i < 10) here or get it from user too.
{
fib = no2 + no1;
no1 = no2;
no2 = fib;
printf(" %d ", fib);
}

getch();
}

rajrnyt
Автор

how to make it reads 10 input integers and displays a message to indicate whether or not the input numbers form a Fibonacci sequence? help please

anniesenachum
Автор

how can i just print the last number?
like, if you want to know the 10th number the program just print 34;
thanks

rodrigomorais
Автор

Hi I was given an assignment by my sir to  write a C program that prints a chess board I tried but could not get a proper output . Can u please help? thanks in advance

mohammedshujaatsayani
Автор

Program to show union and intersection of two sets in

Muhammad-
Автор

wap to print 'n' Fibonacci numbers in the reverse order.10 fibonacci numbers=0 1 1 2 3 5 8 13 21 34.o/p of the program is 34 21 13 8 5 3 2 1 1 0.How to solve this program .

deepakbadatya
Автор

Bhai aap galat kar rhe ho... C does not allow us to declare a variable anywhere bcuz you are using c++ program writer you can do this... But ANSI C doesn't allow us do this

this.sarkhel