answersLogoWhite

0

/*WAP to display Fibonacci series*/

#include<stdio.h>

#include<conio.h>

void main()

{

int i,a=0,b=1,c;

scanf("%d",&n);

printf("%d\n%d",a,b);

for(i=0;i<n;i++)

{

c=a+b;

a=b;

b=c;

printf("\n%d",c);

}

getch();

}

User Avatar

Wiki User

15y ago

What else can I help you with?

Related Questions

What is the name of a plant that shows the Fibonacci numbers in the number of growing points that it has?

The sunflower plant displays the Fibonacci sequence in the arrangement of its seeds within its seed head. The seeds are arranged in two interconnecting spirals, with their numbers typically following the Fibonacci sequence.


Write a c program Fibonacci series using for loop in java?

Exactly what do you mean by 'C program in Java'


Write a program that generates the Fibonacci series up to 200?

class Program { static void Main(string[] args) { int n1, n2, n3,i; n1 = 0; n2 = 1; for (i = 1; i &lt;= 20; i++) { n3 = n1 + n2; if (n3 &lt;= 200) { Console.WriteLine(n3); n1 = n2; n2 = n3; } } Console.ReadKey(); } }


Write a program using while loop that generates Fabonaci series up to 200?

//to generate Fibonacci series upto a range of 200....(in C).... #include&lt;stdio.h&gt; main() { int a,b,c,i; a=0; b=1; printf("\n FIBONACCI SERIES .....\t"); i=1; while(i&lt;=(200-2)) { c=a+b; printf("\t%d",c); a=b; b=c; i++; } }


Can you explain the program of Fibonacci series in c?

You mean you have written a program, but you don't understand it? Well, how could I explain it without seeing it?


Which software program displays advertising on your computer?

youtube


What is the code of a c program that will read in a positive integer value and determine If the integer is a prime number and If the integer is a Fibonacci number?

see the program


Why did Fibonacci think of the Fibonacci code?

There is the Fibonacci sequence but what is the Fibonacci code?


What is a rectangular box that displays information or a program?

A screen (VDU).


What displays the name of the document and the name of the program?

title bar


Write a c program which displays digital watch on the screen after taking the hours and minutes from the user?

Write a program which displays digital watch on the screen, after taking the hours and minutes from the user.


Program to generate Fibonacci series using storage class in c plus plus?

i dn't know. haha