Skip to content
CampusEduX

Sum of N Numbers

Easyjava
Learn the Concept: User Input

Read a count N, then read N integers, and print their sum.

Input: the first token is N; then N integers (any whitespace between them).

Output: one line — the sum of the N integers.

Related Problems

Input (stdin)

Output

Run your code to see output here...