Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- public static void test(int a[]) {
- int c = 0;
- int s = 0;
- for (int i=0;i <a.length; i++) {
- c+=1;
- s+=a[i];
- System.out.println(s +" / " + c + " = " + (float)(s/c));
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement