Calculate the Nth term

  • + 0 comments
    int find_nth_term(int n, int a, int b, int c) {
      //Write your code here.
        if(n==3){
            return c;
        }else{
            return find_nth_term(n-1, b, c, a+b+c);
        }
    
    }