0

can you check the code... it doesn't work for some reason i tryied everything

```
#include <stdio.h>
#include "genlib.h"
#include "simpio.h"
int Fibonacci(int fnum);
int main()
{
int fnum;
printf("Please enter in the Fibonacci number: ");
fnum = GetInteger();
printf("The number for f(%d) is %d\n", fnum, Fibonacci(fnum));
system("pause");
}
int Fibonacci(int fnum)
{
int num1, num2, num3, fib, n1;
num1 = 0;
num2 = 1;
for (fib=1; fib=num2 + 1; fib++)
{
num3 = num1;
num1 = num1 + num2;
num2 = num3;
if(fib = fnum)
{
break;
}
else;
}
return(num1);
}
```