Labs/Lab 5/labtest2.c
int next_five_terms (int n)

{
    if (n > 10)
    {
        return 0;
    }//end if
    else
    {
        return(next_five_terms(n-1) + next_five_terms(n-2));
    }//end else
}
/*Function to handle the last 5 terms of the array*/
Function to handle the last 5 terms of the array
Function to handle the last 5 terms of the array
int next_five_terms (int n)
{
    if (n > 10)
    {
        return 0;
    }
    else
    {
        return(next_five_terms(n-1) + next_five_terms(n-2));
    }
}
int next_five_terms ( int n ) { if ( n > 10 ) { return 0 ; } else { return ( next_five_terms ( n - 1 ) + next_five_terms ( n - 2 ) ) ; } }
Function to handle the last 5 terms of the array
Function to handle the last 5 terms of the array
//end if //end else