title: How can I return the sum and average of an int array?
body: <p>I need to define two methods for returning the <code>sum</code> and <code>average</code> of an int array. The method defining is as follow:-</p>
  <pre><code>public int Sum(params int[] customerssalary)
  {
             
           // I tried the following but it fails   return customerssalary.sum();
  }
  </code></pre>
  <p>Another question is, how can I return the average of these int values?</p>