You are viewing a single comment's thread. Return to all comments →
if(n == 1) return a; else if ( n == 2) return b; else if ( n == 3) return c; return find_nth_term(n-1,a,b,c)+find_nth_term(n-2,a,b,c)+find_nth_term(n-3,a,b,c);
Seems like cookies are disabled on this browser, please enable them to open this website
Calculate the Nth term
You are viewing a single comment's thread. Return to all comments →