Skip to content

Latest commit

 

History

History
23 lines (17 loc) · 416 Bytes

File metadata and controls

23 lines (17 loc) · 416 Bytes

Sum of Integers from File

Challenge Description:

Print out the sum of integers read from a file.

Input sample:

The first argument to the program will be a path to a filename containing a positive integer, one per line. E.g.

5
12

Output sample:

Print out the sum of all the integers read from the file. E.g.

17