Question: Write C function which takes a positive integer from the user and calculates the sum up to th terms of following a sequence. This sequence

Write C function which takes a positive integer from the user and calculates the sum up to th terms of following a sequence. This sequence have a general term : an - 3n + 2 Input is the natural number, do not need to care about others. Do not user a formulation of geeting the sum up to nth terms. Using a recursive method Program must be continued until you enter -1. Function Prototype : int sum upto NthTerm (int k) xample) Enter a positive integer 7 Sum up to 7th term 98 Enter a positive integer 11 Sum up to 11th term220 Enter a positive integer : -1
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
