read lines into aray
Solution
Exercise: Print sum of numbersTake 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 |