answersLogoWhite

0

#include<stdio.h>

#include<conio.h>

void main()

{

int i,n,f1=0,f2=1,f3;

clrscr();

for (i-0;i<10;i++)

{

f3=f1+f2;

f1=f2;

f2=f3;

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

}

getch();

}

output

1

2

3

5

8

13

21

34

55

89

User Avatar

Wiki User

14y ago

What else can I help you with?

Related Questions

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

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


What are the graphics function in c with its purposes?

Platform dependent. I guess you are using TurboC; it has a built-in help-system, and it comes with an example program called bgidemo.c


How can run Terminate and Stay Resident program in windows platform using turboc plus plus?

Terminate and Stay Resident (TSR) programs are a DOS concept, not a Windows concept.


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

i dn't know. haha


How do you create a program that can input 100 names using flowchart?

create a program that can input 100 names


What is a Fibonacci sequence using 84?

The Fibonacci sequence requires two numbers as "seeds".


Why do you have to create program?

Because I think is possible to predict the lottery using a computer program


What is the definition of fictitious?

Fictitious (ficticius artificial, feigned, from fictus) is the use of your imagination to create something. for example making a flag using the Fibonacci Sequence.


How can you put colours in 'C' programs?

Platform-dependent. I guess you are using TurboC, so it is SetTextColor and SetBackgroundColor from conio.h


Can you create dozens of different VMs by using a virtualization program?

yes


Write a c program to generate Fibonacci series using copy constructor?

#include #include void main(void) { int i,j,k,n; clrscr(); i=0; j=1; printf("%d %d ",i,j); for(n=0;n&lt;=5;n++) { k=i+j; i=j; j=k; printf("%d ",k); } getch(); }


Is there any keyword in c or c plus plus like the function inkey in qbasic?

Using TurboC? kbhit and getch are your friends