Calculate the Nth term

  • + 0 comments

    include

    int find_nth_term(int n, int a, int b, int c) { int sum[n],count; sum[0]=a,sum[1]=b,sum[2]=c; for(int i=3;i