Problem2208--Recursive function

2208: Recursive function

Time Limit: 1 Sec  Memory Limit: 128 MB
Submit: 589  Solved: 106
[Submit] [Status] [Web Board] [Creator:]

Description

This problem requires writing a recursive function double recSum(double array[], int count); that takes an int argument and returns the sum of count array entries.

Input

Given an array.

Output

Outputs the sum of count array entries.

Sample Input Copy

1,2,3,4

Sample Output Copy

10

Source/Category

27