Calculate the Nth term

  • + 0 comments

    int find_nth_term(int n, int a, int b, int c) { int res = (a+b)+c; n += res; return (n);
    }
    its execute success but other test scenarios failed. Why? Any idea