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
|
809 Discussions
|
Please Login in order to post a comment
//Copy all this code and paste it
include
// Recursive function to find the nth term of the series int recurse(int n, int a, int b, int c) { // Base cases if (n == 1) return a; if (n == 2) return b; if (n == 3) return c;
}
int main() { int n, a, b, c;
}
include
int main() { int n, a, b, c;
}
Please find the optimized code which passes all case