Skip to content
C

Running Bill with +=

Easyjava

Start from a given total, then add several item prices one by one using +=.

Input: the first line is the starting total; the second line is an integer N; the third line has N prices separated by spaces.

Output: one line — the final total after adding every price.

Input (stdin)

Output

Run your code to see output here...