Search:

Type: Posts; User: saria777

Search: Search took 0.00 seconds.

  1. Thread: Fibonacci

    by saria777
    Replies
    25
    Views
    5,567

    Thanks! :)

    Thanks! :)
  2. Thread: Fibonacci

    by saria777
    Replies
    25
    Views
    5,567

    alrighty. I've got it to compile /finally/. And...

    alrighty. I've got it to compile /finally/. And yes, when it gets so large it begins showing negative numbers.



    #include <stdio.h>

    int Fibonacci (int n);

    int main ()
    {
  3. Thread: Fibonacci

    by saria777
    Replies
    25
    Views
    5,567

    dang it. I feel like such a noob :eek: ...

    dang it. I feel like such a noob :eek:



    #include <stdio.h>

    unsigned int Fibonacci (unsigned int n);

    int main ()
    {
  4. Thread: Fibonacci

    by saria777
    Replies
    25
    Views
    5,567

    I replaced what I had with the iteration function...

    I replaced what I had with the iteration function that was on your link. I'm getting an error that says: 'test.c: In function Fibonacci:' 'test.c:23: error: for loop initial declaration used outside...
  5. Thread: Fibonacci

    by saria777
    Replies
    25
    Views
    5,567

    I got it working with a recursive function, but...

    I got it working with a recursive function, but uhm yeah...took forever, so I'll try to do it with the other thing.
  6. Thread: Fibonacci

    by saria777
    Replies
    25
    Views
    5,567

    Fibonacci

    Hi everyone! This is my first post, and I'm quite a noob at C. I have a homework assingment I have to do, and I've thought on it a lot, but it's confusing me. Here's the exact problem given:

    The...
Results 1 to 6 of 6