daily pastebin goal
5%
SHARE
TWEET

Untitled

a guest Jun 13th, 2018 46 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. public float getAverage(int[] a) {
  2.     float totalCount  = 0;
  3.  
  4.     for (int i=0; i<a.length; i++) {
  5.         totalCount  = totalCount + a[i];
  6.     }
  7.     return (totalCount/a.length);
  8. }
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
 
Top