csea2020pb005 sum of array by recursion


Submit solution

Points: 10 (partial)
Time limit: 2.0s
Memory limit: 12M

Authors:
Problem type
Allowed languages
C

Problem Description

Write a 'C' program to find the sum of elements of an array using recursion.


Input Format

The first line of input consists of number of elements in the array and the next line contains the array elements separated by comma.


Output Format

Output must be printed on a line as follows:

sum of array is :


Sample Input

5

1,2,3,4,5


Sample Output

sum of array is :15


Comments

There are no comments at the moment.