5 thoughts on “I want to write Fibonacci quota, C language”

  1. I didn't understand your recursion so much, I wrote one for you, please refer to
    #intfun (intn) {if (n == 1 || n == 2) Return1; (N-1) FUN (N-2);} intmain (void) {intn, i = 0; "please enter how many items to output the quota:); scanf ("%d ",

  2. I didn't understand your recursion so much, I wrote one for you, please refer to
    #include
    u003CSTDIO.H>
    int
    Fun (int
    n) r
    {
    if (n == 1
    ||
    nnnnnn)
    Rturn
    1; 1)

    fun (n-2);
    }
    int
    main (void)
    {
    int
    n, i = 0;
    printf ("Please enter how many items to output the quota:);
    scanf ("%d ",

  3. After executing Return, the sentence behind Return will not be executed.
    can actually write like this
    int fib (int n)
    {
    if (n u003Cu003C= 2)
    RTurn 1; -1) fib (n-2);
    }
    I just write about it, and grasp it by myself

Leave a Comment

Shopping Cart