#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
Exactly what do you mean by 'C program in Java'
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
Terminate and Stay Resident (TSR) programs are a DOS concept, not a Windows concept.
i dn't know. haha
create a program that can input 100 names
The Fibonacci sequence requires two numbers as "seeds".
Fictitious (ficticius artificial, feigned, from fictus) is the use of your imagination to create something. for example making a flag using the Fibonacci Sequence.
Because I think is possible to predict the lottery using a computer program
Platform-dependent. I guess you are using TurboC, so it is SetTextColor and SetBackgroundColor from conio.h
#include #include void main(void) { int i,j,k,n; clrscr(); i=0; j=1; printf("%d %d ",i,j); for(n=0;n<=5;n++) { k=i+j; i=j; j=k; printf("%d ",k); } getch(); }
yes
Using TurboC? kbhit and getch are your friends