+ 1

recursive sum problem in C

I couldn't handle the base case of the recursive function below. can anyone help? write a recursive function that gives the summation of given number's previous 3 numbers? for example : given number is 7 function gives the sum of 6+5+4 = 15

29th Jun 2019, 1:23 AM
Adem E
Adem E - avatar
1 Odpowiedź
+ 3
please share your code, since you have try it
29th Jun 2019, 7:19 AM
✳AsterisK✳
✳AsterisK✳ - avatar