FIbonacci
- From: "MARQUITOS51" <crazyshawn@xxxxxxxxx>
- Date: 11 Dec 2005 07:06:00 -0800
Hey guys this is the fibonacci series. But Im having this huge problem.
First of all I want to do the simplest code possible so then I can use
user defined functions and arrays. But this one didnt came out well.
Any suggestions!
#include<stdio.h>
#include<math.h>
int main ()
{
int fib, n;
for(n=0; n<=10; n++)
{
fib=(n-1)+(n-2);
printf("%d \n", fib);
}
return 0;
}
.
- Follow-Ups:
- Re: FIbonacci
- From: Peteris Krumins
- Re: FIbonacci
- From: Stefan Wallentowitz
- Re: FIbonacci
- Prev by Date: Re: Speed of finding a size of an array.
- Next by Date: Re: FIbonacci
- Previous by thread: Re: Fibonacci
- Next by thread: Re: FIbonacci
- Index(es):
Relevant Pages
|