Skip to content

Latest commit

 

History

History

024-sum-of-integers-from-file

Folders and files

NameName
Last commit message
Last commit date

parent directory

..
 
 
 
 
 
 
 
 

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