並前往https://www.quora.com/How-do-I-find-the-average-of-a-one-dimensional-array-using-a-foreach-loop-in-C-I-am-also-using-user-input