M
MARQUITOS51
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;
}
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;
}