Exercise: Write report to file


Take the exercise creating statistics of the numbers.txt file and write the results to the numbers.out file.


minimum: -17
maximum:  98
total:   126
count:     6
average:  21

You might need to look up the documentation of the printf command in order to align the columns.