For this Question: Given the marks of N students, your task is to calculate the average of the marks obtained.First line of input contains a single integer N. The next line contains N space separated integers containing the marks of the students.

Constraints:-
1 <= N <= 1000
1 <= marks <= 1000Print the floor of the average of marks obtained.Sample Input:-
4
1 2 3 4

Sample Output:-
2

Sample Input:-
3
5 5 5

Sample Output:-
5, I have written this Solution Code: import java.io.*;
import java.util.*;
import java.lang.*;


class Main {
    public static void main (String[] args)throws IOException {

       Scanner sc = new Scanner(System.in);
       int n = sc.nextInt();
       int a[] = new int[n];
       for(int i=0;i<n;i++){
           a[i]=sc.nextInt();
       }
       System.out.print(Average_Marks(a,n));
       
    }
    
    static int Average_Marks(int marks[],int N){
        int sum=0;
        for(int i=0;i<N;i++){
            sum+=marks[i];
        }
        return sum/N;
    }
    }
, In this Programming Language: Java, Now tell me if this Code is compilable or not?