Find the Sum of All Elements in a One Dimensional Array


Submit solution

Points: 10 (partial)
Time limit: 1800.0s
Memory limit: 64M

Author:
Problem type
Allowed languages
C

Problem Statement

Given a One-Dimensional Array, print the Sum of All Elements in the Array. The Size (Max.20) of the Array and the Array Elements need to be read as input from the user.

Sample Input

5 1 2 3 4 5

Sample Output

15

Explanation

The sum of All Elements in the Array with Size 5 and Elements 1 2 3 4 5 is 15.


Comments

There are no comments at the moment.