G+_L I Posted April 25, 2014 Share Posted April 25, 2014 A simple example using file read, modulo, for loop, if/else, and "input sanitization." Basically reads in a comma separated list of values, and outputs count, sum, average, and number of evens and odds. Also notes the invalid inputs. http://pastebin.com/kwtVP351 Link to comment Share on other sites More sharing options...
Recommended Posts