Exercise: Print sum of numbers



Take a file that has one number on every line
Print the sum of the numbers

Improve it and also print average, minimum and maximum.

Can you also think about way to print median and standard deviation?
examples/numbers.txt
3
8
19
-7
13

Copyright 2006, 2007, 2008, 2009, 2010 Gabor Szabo http://szabgab.com/ Index | TOC
If you are interested in on-site trainings by the author, please contact me directly.

Online courses: