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

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

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!