final int NUM=5; int sum=0, i; double ave; int[] data = new int[NUM]; Scanner sc = new Scanner(System.in); for (i=0; i