We use cookies to ensure you have the best browsing experience on our website. Please read our cookie policy for more information about how we use cookies.
- Prepare
- C
- Functions
- Calculate the Nth term
- Discussions
Calculate the Nth term
Calculate the Nth term
Sort by
recency
|
821 Discussions
|
Please Login in order to post a comment
Here is Calculate the Nth term solution in c - https://programmingoneonone.com/hackerrank-calculate-the-nth-term-solution-in-c.html
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
include
include
include
include
//Complete the following function.
int find_nth_term(int n, int a, int b, int c) { //Write your code here. int ret = 0; int d = 0;
}
int main() { int n, a, b, c;
}