You are viewing a single comment's thread. Return to all comments →
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
Seems like cookies are disabled on this browser, please enable them to open this website
An unexpected error occurred. Please try reloading the page. If problem persists, please contact support@hackerrank.com
Calculate the Nth term
You are viewing a single comment's thread. Return to all 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