Sum of Array

PHP Easy 6 views
Back to Questions
Next Maximum Element Easy N

Problem Description

Given n integers, print their sum.

Input Format

First n. Next line n integers.

Output Format

One integer sum.

Sample Test Case

Input:
5 1 2 3 4 5
Output:
15

Constraints

n

Solutions (0)

No solutions submitted yet. Be the first!

Discussion (0)

No comments yet. Start the discussion!

Next