help me to fix this code :(
int mark[] = new int[3]; int i; float sum=0; float avg; Scanner scan = new Scanner(System.in); System.out.println("Enter Score For 3 Test For Student num 1: "); for(i=0; i<3; i++) { mark[i] = scan.nextInt(); sum = sum + mark[i]; } avg = sum/3; Scanner sc= new Scanner(System.in); System.out.println("Average Marks = " +avg); System.out.println("------------"); System.out.println("Enter Score For 3 Test For Student num 2: "); for(i=0; i<3; i++) { mark[i] = scan.nextInt(); sum = sum + mark[i]; } avg = sum/3; System.out.print("Average Marks = " +avg);