#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
i dn't know. haha
Terminate and Stay Resident (TSR) programs are a DOS concept, not a Windows concept.
create a program that can input 100 names
The Fibonacci sequence requires two numbers as "seeds".
Because I think is possible to predict the lottery using a computer program
Fictitious (ficticius artificial, feigned, from fictus) is the use of your imagination to create something. for example making a flag using the Fibonacci Sequence.
Platform-dependent. I guess you are using TurboC, so it is SetTextColor and SetBackgroundColor from conio.h
yes
#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(); }
You can create your own software by using an online programs. A good program to check out are Hypernext studio.